diff --git a/en/reference/working-with-objects.rst b/en/reference/working-with-objects.rst index f737807d3..736401ac8 100644 --- a/en/reference/working-with-objects.rst +++ b/en/reference/working-with-objects.rst @@ -604,13 +604,13 @@ underlying ``UnitOfWork``: getUnitOfWork()->getEntityState($entity)) { - case UnitOfWork::MANAGED: + case UnitOfWork::STATE_MANAGED: ... - case UnitOfWork::REMOVED: + case UnitOfWork::STATE_REMOVED: ... - case UnitOfWork::DETACHED: + case UnitOfWork::STATE_DETACHED: ... - case UnitOfWork::NEW: + case UnitOfWork::STATE_NEW: ... }