doctrine/doctrine2 — pull request #981 by rodmcnew (2014-03-17 16:21:47+00:00)
Title: Throw exepction for invalid mappedBys rather than PHP undefined index warning

This fix throws an appropriate MappingException with an explanation of what is wrong with the mapping rather than just throwing an un-actionable php warning.

Example old error message: "Undefined index: item in /www/apps/rwriter/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php on line 2079”

Example new MappingException message: “Property items in RcmShoppingCart\Entity\TempOrder specified mappedBy="tempOrderItem" but tempOrderItem is not a property of RcmShoppingCart\Entity\TempOrderItem”