doctrine/doctrine2 — pull request #1016 by flip111 (2014-04-23 14:50:33+00:00)
Title: improved error handling for invalid association values

Possibly to do:
1. Make custom Exception for line 713
2. Make custom Exception for line 817
3. Does the object check on line 816 slow down the code too much? Alternatively a try-catch could be put around line 1415 or higher up.