Doctrine 2 - ORM

Notice trying to match a Criteria referencing a managed entity not yet persisted