/** * @return \yii\db\ActiveQuery */ public function getInternalMoveRequestLines() { return $this->hasMany(InternalMoveRequestLine::className(), ['product_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getInternalMoveRequestLine() { return $this->hasOne(InternalMoveRequestLine::className(), ['id' => 'internal_move_request_line_id']); }