mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1437: Strange behavior with proxied classes,expected to get entity, but returned identifier. #1802
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 19, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user goetas:
I have the following xml mapping:
From this mapping i have generated the php classes.
In my application, when the
SuperUserclass 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:
(sorry for my english)
@doctrinebot commented on GitHub (Oct 19, 2011):
Comment created by @beberlei:
very recent bug in master, i will fix it.
@doctrinebot commented on GitHub (Oct 19, 2011):
Comment created by @beberlei:
fixed in master
@doctrinebot commented on GitHub (Oct 19, 2011):
Issue was closed with resolution "Fixed"