Doctrine 2 - ORM

CommitOrderCalculator fails to calculate right order for mixing one-to-many and one-to-one relations