setRelationNtoN delete in junction table

Hello, I use CodeIgniter 3 and GroceryCrud Enterprise, I upgraded from the community Edition.

I’ve had a little problem with setRelationNtoN that i didn’t have before.

When i delete a row, it won’t delete in the junction table and tells me there’s a foreign key constraint error.
If i put on delete cascade it works fine but that’s not something i want to do because of other use cases.

Is there a fix for this?