/**
  * @expectedException RuntimeException
  */
 public function testCannotAttachBehaviorToAnythingButActiveRecord()
 {
     $model = new Model();
     $model->attachBehavior('saveRelated', SaveRelationsBehavior::className());
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['saveRelations' => ['class' => SaveRelationsBehavior::className(), 'relations' => ['company', 'users', 'links']]];
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['saveRelations' => ['class' => SaveRelationsBehavior::className(), 'relations' => ['linkType']]];
 }