/** * @return Tx_Typo3Agencies_Domain_Model_Country */ public function getCountryObject() { if ($this->countryRepository == NULL) { $this->countryRepository = t3lib_div::makeInstance('Tx_Typo3Agencies_Domain_Repository_CountryRepository'); } return $this->countryRepository->findOneByCnIso2($this->country); }