Skip to content

Commit b0a05e0

Browse files
authored
Update QueryBuilder.php
1 parent 927fd8f commit b0a05e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function whereIsRoot()
8686
*/
8787
public function whereAncestorOf($id, $andSelf = false, $boolean = 'and')
8888
{
89-
$keyName = $this->model->getQualifiedKeyName();
89+
$keyName = $this->model->getTable() . '.' . $this->model->getKeyName();
9090

9191
if (NestedSet::isNode($id)) {
9292
$value = '?';

0 commit comments

Comments
 (0)