/** * @return \yii\db\ActiveQuery */ public function getTrip() { return $this->hasOne(Trips::className(), ['id' => 'trip_id']); }