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