-
-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
I wanted to implement two tree in a single table.
Table : users
First relation is parent
And second is introducer
The parent tree is working fine, but when I try to grab ancestors of introducer tree, it gives me parent tree result.
I am trying to pass the different foreign key name but got no luck.
public function introducerAncestors()
{
return $this->newAncestors(
(new static())->newQuery(),
$this,
(new static())->getTable().'.introducer_id',
'id',
false
);
}Is there any way to use multiple tree on same table?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels