Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDeals()
 {
     return $this->hasMany(Deals::className(), ['deal_status_id' => 'id']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDeals()
 {
     return $this->hasMany(Deals::className(), ['company_id' => 'id']);
 }