From 68ac6bbcdc8f0644b01a7e068727bdd98dc22f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Mon, 24 Jul 2023 23:44:33 +0200 Subject: [PATCH] Remove outdated comment Since support for persistence 2 has been dropped, this method may no longer acces an aliased class name. Besides, providing an FQCN with a leading backslash should works since removing it is the first thing that happens inside AbstractClassMetadataFactory::getMetadataFor(). --- lib/Doctrine/ORM/EntityManager.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/Doctrine/ORM/EntityManager.php b/lib/Doctrine/ORM/EntityManager.php index fcc54a27bbe..fdabf133b5d 100644 --- a/lib/Doctrine/ORM/EntityManager.php +++ b/lib/Doctrine/ORM/EntityManager.php @@ -207,13 +207,6 @@ public function rollback(): void /** * Returns the ORM metadata descriptor for a class. * - * The class name must be the fully-qualified class name without a leading backslash - * (as it is returned by get_class($obj)) or an aliased class name. - * - * Examples: - * MyProject\Domain\User - * sales:PriceRequest - * * Internal note: Performance-sensitive method. * * {@inheritDoc}