We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927fd8f commit b0a05e0Copy full SHA for b0a05e0
src/QueryBuilder.php
@@ -86,7 +86,7 @@ public function whereIsRoot()
86
*/
87
public function whereAncestorOf($id, $andSelf = false, $boolean = 'and')
88
{
89
- $keyName = $this->model->getQualifiedKeyName();
+ $keyName = $this->model->getTable() . '.' . $this->model->getKeyName();
90
91
if (NestedSet::isNode($id)) {
92
$value = '?';
0 commit comments