how to unset mapped attribute in entities? |
this guide to entities says
Quote: but I'm unable to unset the name property when it's mapped to full_name. When I do PHP Code: unset($user->name); PHP Code: return $this->respond($user);
Thanks!
I created an issue. https://github.com/codeigniter4/CodeIgni...ssues/5495 This must be a bug or bug in the documentation.
This bug was fixed in the latest develop branch.
https://github.com/codeigniter4/CodeIgniter4/pull/5497 Please check it, if you can. |
Welcome Guest, Not a member yet? Register Sign In |