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); }