Skip to content

Commit 602b713

Browse files
committed
get metadata of node
1 parent a6ff502 commit 602b713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Gedmo/Tree/Strategy/ORM/Nested.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ public function shiftRL(EntityManager $em, $class, $first, $delta, $root = null)
533533
if ($node instanceof Proxy && !$node->__isInitialized__) {
534534
continue;
535535
}
536-
if (get_class($node) !== $class) {
536+
if ($em->getClassMetadata(get_class($node))->name !== $meta->name) {
537537
continue;
538538
}
539539
$oid = spl_object_hash($node);
@@ -602,7 +602,7 @@ public function shiftRangeRL(EntityManager $em, $class, $first, $last, $delta, $
602602
if ($node instanceof Proxy && !$node->__isInitialized__) {
603603
continue;
604604
}
605-
if (get_class($node) !== $class) {
605+
if ($em->getClassMetadata(get_class($node))->name !== $meta->name) {
606606
continue;
607607
}
608608
$left = $meta->getReflectionProperty($config['left'])->getValue($node);

0 commit comments

Comments
 (0)