示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRaptor()
 {
     return $this->hasOne(Raptor::className(), ['id' => 'raptor_id']);
 }
示例#2
0
文件: Prey.php 项目: eibenm/raptorapp
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIncident()
 {
     return $this->hasOne(Raptor::className(), ['id' => 'incident_id']);
 }