SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.warranty_exists' in 'where clause'SELECT count(*) AS aggregate FROM `users` WHERE (`users`.`warranties_exists` = 1)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.warranty_exists' in 'where clause'SELECT count(*) AS aggregate FROM `users` WHERE (`users`.`warranties_exists` = 1)
which I add the
relationship
relationship
method, but it wants a
titleAttribute
titleAttribute
attribute. Unfortunately, the
titleAttribute
titleAttribute
is using the value from the boolean which would be
1
1
.
BooleanConstraint::make('warranties_exists') ->relationship( name: 'warranties', titleAttribute: 'id', ),// Any ideas how to get this to work? titleAttribute uses the value of the boolean.
BooleanConstraint::make('warranties_exists') ->relationship( name: 'warranties', titleAttribute: 'id', ),// Any ideas how to get this to work? titleAttribute uses the value of the boolean.