Skip to content

Commit 85131b2

Browse files
authored
Update QueryBuilder.php
1 parent b0a05e0 commit 85131b2

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
@@ -100,7 +100,7 @@ public function whereAncestorOf($id, $andSelf = false, $boolean = 'and')
100100
->toBase()
101101
->select("_.".$this->model->getRgtName())
102102
->from($this->model->getTable().' as _')
103-
->where($keyName, '=', $id)
103+
->where($this->model->getKeyName(), '=', $id)
104104
->limit(1);
105105

106106
$this->query->mergeBindings($valueQuery);

0 commit comments

Comments
 (0)