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
v2.x-dev Rebuild fails with message Illuminate/Database/QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'persons.parent_id' in 'where clause' (SQL: select count(*) as aggregate from personsleft outer joinpersonsAS parent onpersons.parent_id = parent.id where (persons.lftIS NULL ORpersons.rgtIS NULL ORpersons.lft>=persons.rgt OR (persons.parent_id IS NOT NULL AND (persons.lft <= parent.lftORpersons.rgt >= parent.rgt))) and persons.deleted_at is null)'
where the model (in this casePerson) has an alias for the parent column: protected $parentColumn = 'reports_to';
The text was updated successfully, but these errors were encountered:
v2.x-dev Rebuild fails with message
Illuminate/Database/QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'persons.parent_id' in 'where clause' (SQL: select count(*) as aggregate from
personsleft outer join
personsAS parent on
persons.
parent_id= parent.
idwhere (
persons.
lftIS NULL OR
persons.
rgtIS NULL OR
persons.
lft>=
persons.
rgtOR (
persons.
parent_idIS NOT NULL AND (
persons.
lft<= parent.
lftOR
persons.
rgt>= parent.
rgt))) and
persons.
deleted_atis null)'
where the model (in this casePerson) has an alias for the parent column:
protected $parentColumn = 'reports_to';
The text was updated successfully, but these errors were encountered: