Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPartnerContract()
 {
     return $this->hasOne(DPartnerContracts::className(), ['id' => 'partner_contract_id']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDPartnerContracts()
 {
     return $this->hasMany(DPartnerContracts::className(), ['partner_id' => 'id']);
 }