Skip to content
Snippets Groups Projects
Commit 42a3a631 authored by André Noack's avatar André Noack
Browse files

fix on_delete syntax re #299

parent 961707af
Branches
No related tags found
No related merge requests found
......@@ -193,8 +193,8 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe
$config['has_and_belongs_to_many']['domains'] = [
'class_name' => 'UserDomain',
'thru_table' => 'seminar_userdomains',
'ondelete' => 'delete',
'onstore' => 'store',
'on_delete' => 'delete',
'on_store' => 'store',
'order_by' => 'ORDER BY name',
];
......
......@@ -19,15 +19,15 @@ class UserDomain extends SimpleORMap
'class_name' => 'User',
'thru_table' => 'user_userdomains',
'assoc_foreign_key' => 'user_id',
'ondelete' => 'delete',
'onstore' => 'store',
'on_delete' => 'delete',
'on_store' => 'store',
];
$config['has_and_belongs_to_many']['courses'] = [
'class_name' => 'Course',
'thru_table' => 'seminar_userdomains',
'ondelete' => 'delete',
'onstore' => 'store',
'on_delete' => 'delete',
'on_store' => 'store',
];
$config['registered_callbacks']['before_store'][] = function ($domain) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment