Doctrine 2 - ORM

Illegal offset type in isset or empty in UnitOfWork