Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$this->belongsToMany('Contacts', [
'className' => 'Users',
'foreignKey' => 'message_id',
'targetForeignKey' => 'user_id',
'through' => 'MessageContacts'
]);
@blieb

This comment has been minimized.

Copy link
Owner Author

commented Jun 13, 2018

Array
(
[title] => Eekhoorn
[type] => 1
[user_id] =>
[contacts] => Array
(
[_ids] => Array
(
[0] => 1
)

    )

[message] => Dit is een speciaal bericht zonder datum
[start_date] => 13-06-2018 02:01
[end_date] => 13-06-2018 02:01

)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.