Jira issue originally created by user icebrkr:
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;
Comment created by @beberlei:
A proxy object is created, when the value on the foreign key is != NULL. If you are having 0 thhere fore example, this problem will happen. We wont fix this however as this can cause serious issues over the project. Your database schema has to conform with Doctrine in this regard, its a requirement.
Issue was closed with resolution "Invalid"