public function getLocality() { return $this->hasOne(Locality::className(), ['Id' => 'localityId']); }