/** * Get the title of Street where Estate is placed * * @return string */ public function getStreetName() { /** @var Street $model */ $model = Street::findOne(['id' => $this->getStreetId()]); return $model->title; }