/** * Return the string representation for the birth city * * @return string */ public function getBirthCityRepresentation() { $criteria = new Criteria(); $criteria->add(CityPeer::ID, $this->getBirthCity()); $city = CityPeer::doSelectOne($criteria); if ($city) { return $city->getName(); } }