Closed nickhagen closed 3 years ago
Here is the relationship defined on Model_User
protected static $_many_many = [
'roles' => [
'key_from' => 'id',
'key_through_from' => 'user_id',
'table_through' => 'users_roles',
'key_through_to' => 'role_id',
'key_to' => 'id',
'model_to' => 'Model_Role',
'cascade_save' => true,
'cascade_delete' => false,
],
];
It's missing the entire SET statement, weird. Nothing has changed to SQL generation.
Currently debugging another issue, I'll have a look at this as well.
Trying to use many-many relationships on the latest version of the ORM causes database exceptions with Many-Many relationships!
The following code works on dev-1.9/develop#9b7e24253948fd9884c4c2120d999786691ee64b ... but the latest version receives the below error: