Additional context
I'm trying to use strict entities in the project and restrict calling mapped attributes:
$u->name is not allowed, $u->username is allowed if $datamap['name'] = 'username' .
The library currently uses the old version of $u->{$attribute}.
I understand it doesn't make sense for a framework. Can you think of something for my case? Given the requirement not to call mapped attributes as object properties.
$u->mapProperty(...) is a method, but it is protected.
Any ideas?
Additional context
I'm trying to use strict entities in the project and restrict calling mapped attributes:
$u->nameis not allowed,$u->usernameis allowed if$datamap['name'] = 'username'.The library currently uses the old version of
$u->{$attribute}.I understand it doesn't make sense for a framework. Can you think of something for my case? Given the requirement not to call mapped attributes as object properties.
$u->mapProperty(...)is a method, but it is protected.Any ideas?