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