From b9d3d4f55f87942d104e17ac735f416a49c66e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Thu, 25 May 2023 16:45:49 +0200 Subject: [PATCH] AnnotationDriver::isTransient: Use driver by className Thanks @MartinSzollos2016. --- src/Orm/Mapping/AnnotationDriver.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Orm/Mapping/AnnotationDriver.php b/src/Orm/Mapping/AnnotationDriver.php index 3125b21..486e2f1 100644 --- a/src/Orm/Mapping/AnnotationDriver.php +++ b/src/Orm/Mapping/AnnotationDriver.php @@ -97,13 +97,7 @@ public function getAllClassNames(): array */ public function isTransient($className): bool { - foreach ($this->drivers as $driver) { - if ($driver->isTransient($className)) { - return true; - } - } - - return false; + return $this->getDriveByEntityClassName($className)->isTransient($className); }