Skip to content

Commit

Permalink
AnnotationDriver::isTransient: Use driver by className
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored May 25, 2023
1 parent 1f15703 commit b9d3d4f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Orm/Mapping/AnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit b9d3d4f

Please sign in to comment.