Skip to content

Commit a2f804a

Browse files
committed
fix tree hydrator proxy
1 parent 45f7855 commit a2f804a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Gedmo/Tree/Hydrator/ORM/TreeObjectHydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ protected function getEntityClassFromHydratedData($data)
248248
{
249249
$firstMappedEntity = array_values($data);
250250
$firstMappedEntity = $firstMappedEntity[0];
251-
return get_class($firstMappedEntity);
251+
return $this->_em->getClassMetadata(get_class($firstMappedEntity))->rootEntityName;
252252
}
253253

254254
protected function getPropertyValue($object, $property)

0 commit comments

Comments
 (0)