Skip to content

Commit 621b224

Browse files
committed
Support old ver
1 parent 9446e8f commit 621b224

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/DescendantsRelation.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ public function getRelationExistenceQuery(EloquentBuilder $query, EloquentBuilde
6262
return $query->whereRaw("{$hash}.{$lft} between {$table}.{$lft} + 1 and {$table}.{$rgt}");
6363
}
6464

65+
/**
66+
* @param EloquentBuilder $query
67+
* @param EloquentBuilder $parent
68+
* @param array $columns
69+
*
70+
* @return mixed
71+
*/
72+
public function getRelationQuery(
73+
EloquentBuilder $query, EloquentBuilder $parent,
74+
$columns = [ '*' ]
75+
) {
76+
return $this->getRelationExistenceQuery($query, $parent, $columns);
77+
}
78+
6579
/**
6680
* Get a relationship join table hash.
6781
*

0 commit comments

Comments
 (0)