chg: [users] associated with orgs

pull/79/head
iglocska 2021-11-24 01:25:32 +01:00
parent 9619989a94
commit e5e4e74cae
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,13 @@ class UsersTable extends AppTable
'cascadeCallbacks' => false
]
);
$this->belongsTo(
'Organisations',
[
'dependent' => false,
'cascadeCallbacks' => false
]
);
$this->hasMany(
'UserSettings',
[