示例#1
0
文件: Operation.php 项目: comaw/pars
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCategories()
 {
     return $this->hasMany(OperationCategory::className(), ['id' => 'category'])->viaTable('{{%operation_category_join}}', ['operation' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCategory0()
 {
     return $this->hasOne(OperationCategory::className(), ['id' => 'category']);
 }