@@ -430,12 +430,12 @@ private function buildAncestorsQuery(Builder $builder, $id, $withSelf)
430
430
return $ builder
431
431
->join (
432
432
$ this ->closure ->getTable (),
433
- $ this ->closure ->getAncestorColumn (),
433
+ $ this ->closure ->getQualifiedAncestorColumn (),
434
434
'= ' ,
435
435
$ this ->getQualifiedKeyName ()
436
436
)
437
- ->where ($ this ->closure ->getDescendantColumn (), '= ' , $ id )
438
- ->where ($ this ->closure ->getDepthColumn (), $ depthOperator , 0 );
437
+ ->where ($ this ->closure ->getQualifiedDescendantColumn (), '= ' , $ id )
438
+ ->where ($ this ->closure ->getQualifiedDepthColumn (), $ depthOperator , 0 );
439
439
}
440
440
441
441
/**
@@ -563,12 +563,12 @@ private function buildDescendantsQuery(Builder $builder, $id, $withSelf)
563
563
return $ builder
564
564
->join (
565
565
$ this ->closure ->getTable (),
566
- $ this ->closure ->getDescendantColumn (),
566
+ $ this ->closure ->getQualifiedDescendantColumn (),
567
567
'= ' ,
568
568
$ this ->getQualifiedKeyName ()
569
569
)
570
- ->where ($ this ->closure ->getAncestorColumn (), '= ' , $ id )
571
- ->where ($ this ->closure ->getDepthColumn (), $ depthOperator , 0 );
570
+ ->where ($ this ->closure ->getQualifiedAncestorColumn (), '= ' , $ id )
571
+ ->where ($ this ->closure ->getQualifiedDepthColumn (), $ depthOperator , 0 );
572
572
}
573
573
574
574
/**
0 commit comments