mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Calling Doctrine\ORM\EntityManager::clear() with any arguments to clear specific entities is deprecated #6352
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 @ruudk on GitHub (Nov 26, 2019).
Originally assigned to: @lcobucci on GitHub.
Bug Report
Summary
Calling
Doctrine\ORM\EntityRepository::cleartriggers deprecation message:Current behavior
Doctrine\ORM\EntityRepository::cleardoes not any input and passes the call to$this->_em->clear($this->_class->rootEntityName);.I think we can just remove the
$this->_class->rootEntityNameargument here:a416a9a8b2/lib/Doctrine/ORM/EntityRepository.php (L133-L136)