/** * @return \yii\db\ActiveQuery */ public function getTheatre() { return $this->hasOne(Theatre::className(), ['Id' => 'theatreId']); }