I have the following xml mapping:
From this mapping i have generated the php classes.
In my application, when the SuperUser class is proxied, SuperUser::getUser() method looks like this:
When i call $usperuser->getUser() the expected return value is the User class instance; but the current implementation returns only user id (contained in $this->_identifier["user"]).
In this behavior is also involved private function ProxyFactory::isShortIdentifierGetter($method, $class)
Some solutions proposed by me, can be:
- remove this behavior
- during proxy generation, add in this case a method called getUserId, and this method can return user id (but in this case, the behavior continues to be strange because is available only for proxied classes).
(sorry for my english)