示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopFilters()
 {
     return $this->hasMany(Filter::className(), ['input_type' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFilters()
 {
     return $this->hasMany(Filter::className(), ['category_id' => 'id']);
 }