We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7583bf0 commit 26e52aaCopy full SHA for 26e52aa
src/Turbo/src/Doctrine/ClassUtil.php
@@ -25,7 +25,7 @@ public static function getEntityClass(object $entity): string
25
{
26
// Doctrine proxies (old versions)
27
if (str_contains($entity::class, 'Proxies\\__CG__')) {
28
- return get_parent_class($entity);
+ return get_parent_class($entity) ?: $entity::class;
29
}
30
31
if ($entity instanceof LazyObjectInterface) {
0 commit comments