/** * @return \yii\db\ActiveQuery */ public function getReserveSpot() { return $this->hasOne(Spot::className(), ['spot_id' => 'reserve_spot_id']); }