Skip to content

Commit 4d64048

Browse files
authored
Merge pull request #1790 from mssimi/fix-tree-hydrator-proxy
fix tree hydrator proxy
2 parents 45f7855 + a2f804a commit 4d64048

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)