Affects Version/s: 2.4
Fix Version/s: None
Security Level: All
Environment:Linux 2.6.32-358.18.1.el6.x86_64 #1 SMP Fri Aug 2 17:04:38 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
Server version: Apache/2.2.22 (Unix)
PHP 5.3.3 (cli) (built: Jul 12 2013 04:36:18)
Doctrine\ORM\EntityNotFoundException - Entity was not found.
OneToOne join-side doesn't contain a matching record. One would assume this would just continue with an empty proxy object (full of null properties).
The offending line of code is on line 750 of DOctrine\ORM\BasicEntityPersister.php.
A quick fix/work-around was to replace the return null value with $entity which seems to be the object proxy class.
return $entities ? $entities : null;
return $entities ? $entities : $entity;