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.
2 parents 45f7855 + a2f804a commit 4d64048Copy full SHA for 4d64048
lib/Gedmo/Tree/Hydrator/ORM/TreeObjectHydrator.php
@@ -248,7 +248,7 @@ protected function getEntityClassFromHydratedData($data)
248
{
249
$firstMappedEntity = array_values($data);
250
$firstMappedEntity = $firstMappedEntity[0];
251
- return get_class($firstMappedEntity);
+ return $this->_em->getClassMetadata(get_class($firstMappedEntity))->rootEntityName;
252
}
253
254
protected function getPropertyValue($object, $property)
0 commit comments