You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible, and what would be the fieldConf of a 1:m self referring relationship ?
example :
employee table has a manager field, which is a foreign key to employee->id
this describes a tree, which we should traverse in both direction (up and down).
thanks.
The text was updated successfully, but these errors were encountered:
Yes it's possible. Simply point it to the model itself. Manager is a belongs to one field config and another field, i.e. "manages" can be added to fieldConf that is a has-many configuration, pointing to the manager-id field, which will contain all the child employees the manager will manage.
hi ;
is it possible, and what would be the fieldConf of a 1:m self referring relationship ?
example :
employee table has a manager field, which is a foreign key to employee->id
this describes a tree, which we should traverse in both direction (up and down).
thanks.
The text was updated successfully, but these errors were encountered: