/** * @return \yii\db\ActiveQuery */ public function getRequisicionD() { return $this->hasOne(Requisicion::className(), ['id' => 'requisicion_did']); }
/** * @return \yii\db\ActiveQuery */ public function getRequisicions() { return $this->hasMany(Requisicion::className(), ['cliente_did' => 'id']); }