예제 #1
0
파일: Model.php 프로젝트: efabrikov/renault
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCategories()
 {
     return $this->hasMany(ModelCategories::className(), ['model_id' => 'id']);
 }