/** * @return \yii\db\ActiveQuery */ public function getIdGroup() { return $this->hasOne(ProductGroup::className(), ['id_group' => 'id_group']); }