Update UnitOfWork.php

Lazy loading support for parent classes had a serious bug: If there were more than one entity pointing to a proxied entity, the second entity will overwrite the first one. This results in an invalid parent class proxy instance in the first entity, because its never replaced in the triggerEagerLoads method