Doctrine 2 - ORM

Cannot call entityManager->flush($entity) with new entity