mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
\Doctrine\ORM\EntityManager::find() with optimistic lock for deleted entity raises an error #6705
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 @ilianiv on GitHub (Apr 29, 2021).
If the requested entity ID does not exist (e.g. because it has been deleted), the error is triggered.
Version: 2.8.4
Error:
Doctrine\ORM\UnitOfWork::lock(): Argument 1 ($entity) must be of type object, null given
Called in:
vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:474