mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2267: EntityManager throws an exception when trying to flush($entity) on a deleted entity #2846
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 31, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user gena01:
$entity = $em->find("Bug", 1);
$em->remove($entity);
$em->flush($entity);
Throws an exception. Works fine with $em->flush() (No $entity provided).
Would be nice to just flush the deleted entity separate from other entities. This technically works for other operations except remove(). The exception claims that the entity is not mapped. It technically can't be mapped since it's set to be deleted.
@doctrinebot commented on GitHub (Jan 31, 2013):
@doctrinebot commented on GitHub (May 4, 2013):
Comment created by @beberlei:
Fixed in 2.3 branch, for 2.3.4
@doctrinebot commented on GitHub (May 4, 2013):
Issue was closed with resolution "Fixed"