Exemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCategories()
 {
     return $this->hasMany(OperationCategory::className(), ['id' => 'category'])->viaTable('{{%operation_category_join}}', ['operation' => 'id']);
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCategory0()
 {
     return $this->hasOne(OperationCategory::className(), ['id' => 'category']);
 }