Exemple #1
0
 public function behaviors()
 {
     return ['category' => ['class' => \voskobovich\manytomany\ManyToManyBehavior::className(), 'relations' => ['service_ids' => 'services']]];
 }
Exemple #2
0
 function behaviors()
 {
     return ['field' => ['class' => 'pistol88\\field\\behaviors\\AttachFields'], ['class' => \voskobovich\manytomany\ManyToManyBehavior::className(), 'relations' => ['user_ids' => 'users']]];
 }