I would like delete records but I get error message
Record is referenced by model XXXXXXX
this model is belongTo other models but I can't delete related records because beforeDelete not trigger.
Function _checkForeignKeysRestrict
is execute before beforeDelete
and breaking deletion process.
How can solve it?