示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getLocation()
 {
     return $this->hasOne(Locations::className(), ['id' => 'location_id']);
 }