You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: SoftDelete leaves the deleted entity in the heap as MANAGED #56
After a soft delete the entity stays in the heap as MANAGED, although Listener\SoftDelete intends to remove it: line 29 calls $event->state->setStatus(Node::SCHEDULED_DELETE) under the comment "Node should be removed from heap". With the current cycle/orm that call has no observable effect: with or without it, the soft-deleted entity is still in the heap with status MANAGED after EntityManager::run().
Is this a regression?
Not checked; possibly ORM behaviour changed under the listener.
To Reproduce
Entity with the SoftDelete behavior.
$em->delete($entity)->run();
$orm->getHeap()->get($entity) still returns the node, with status Node::MANAGED; removing line 29 changes nothing.
Expected behaviour
Either the soft-deleted entity leaves the heap, as the comment says, or the line and the comment go, if keeping it in the heap is the intended behaviour.
Activity