/** * @return \yii\db\ActiveQuery */ public function getMrpWorkcenters() { return $this->hasMany(MrpWorkcenter::className(), ['product_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getMrpWorkcenters() { return $this->hasMany(MrpWorkcenter::className(), ['costs_general_account_id' => 'id']); }