symfony/symfony — pull request #2944 by Burgov (2011-12-22 14:48:16+00:00)
Title: fixed the display of the current value in a doctrine entity type

when the current value is an instance of Doctrine\Orm\Proxy\Proxy

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes

Arguably, this is a Doctrine issue rather than a Symfony one, but when the current value in the entity type is a proxy instance, no item is selected, because "$this->reflFields[$this->identifier[0]]->getValue($entity);" (in ClassMetadata) always returns null unless the entity is loaded