Doctrine 2 - ORM

EntityManager throws an exception when trying to flush($entity) on a deleted entity