Doctrine 2 - ORM

UnitOfWork#getCommitOrder() does not add dependencies for all related classes