Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIncidents()
 {
     return $this->hasMany(Incident::className(), ['user_id' => 'id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRaptor()
 {
     return $this->hasOne(Incident::className(), ['id' => 'raptor_id']);
 }
Beispiel #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIncidents()
 {
     return $this->hasMany(Incident::className(), ['nearest_city_id' => 'id']);
 }
Beispiel #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIncident()
 {
     return $this->hasOne(Incident::className(), ['id' => 'incident_id']);
 }