Welcome Guest, Not a member yet? Register   Sign In
how to unset mapped attribute in entities?
#1

this guide to entities says
Quote:
Code:
unset
and
Code:
isset
only work on the mapped property,
Code:
$name
, not on the original name,
Code:
full_name

but I'm unable to unset the name property when it's mapped to full_name. When I do 
PHP Code:
unset($user->name); 
before
PHP Code:
return $this->respond($user); 
 in the controller the name is still there.
Reply
#2

Thanks!

I created an issue.
https://github.com/codeigniter4/CodeIgni...ssues/5495

This must be a bug or bug in the documentation.
Reply
#3

This bug was fixed in the latest develop branch.
https://github.com/codeigniter4/CodeIgniter4/pull/5497
Please check it, if you can.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB