Skip to content

Commit 99337cb

Browse files
committed
CS
1 parent b02ea38 commit 99337cb

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)