chg: [individual] MailingLists association improved

pull/93/head
Sami Mokaddem 2021-11-04 08:09:01 +01:00
parent 9373c35bc6
commit 16581a13fb
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ class IndividualsTable extends AppTable
$this->belongsToMany('Organisations', [
'through' => 'Alignments',
]);
$this->belongsToMany('MailingLists');
$this->belongsToMany('MailingLists', [
'through' => 'mailing_lists_individuals',
]);
$this->setDisplayField('email');
}