Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProductGroups()
 {
     return $this->hasMany(ProductGroupBase::className(), ['product_category_id' => 'id']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProductGroup()
 {
     return $this->hasOne(ProductGroupBase::className(), ['id' => 'product_group_id']);
 }