Skip to content

Commit 26e52aa

Browse files
smnandrekbond
authored andcommitted
CS
1 parent 7583bf0 commit 26e52aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Turbo/src/Doctrine/ClassUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function getEntityClass(object $entity): string
2525
{
2626
// Doctrine proxies (old versions)
2727
if (str_contains($entity::class, 'Proxies\\__CG__')) {
28-
return get_parent_class($entity);
28+
return get_parent_class($entity) ?: $entity::class;
2929
}
3030

3131
if ($entity instanceof LazyObjectInterface) {

0 commit comments

Comments
 (0)