Created
June 13, 2018 12:35
-
-
Save blieb/1d6190d8150e9b02dc13a39fd307dc5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->belongsToMany('Contacts', [ | |
'className' => 'Users', | |
'foreignKey' => 'message_id', | |
'targetForeignKey' => 'user_id', | |
'through' => 'MessageContacts' | |
]); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Array
(
[title] => Eekhoorn
[type] => 1
[user_id] =>
[contacts] => Array
(
[_ids] => Array
(
[0] => 1
)
)