[TYPO3-mvc] Property / relation problem

Claus Due claus at wildside.dk
Fri Feb 3 14:54:29 CET 2012


> public function initializeSaveAction() {
> 
> 	$identityMap = $this->objectManager->get('Tx_Extbase_Persistence_IdentityMap');
> 	$countries = $this->countryRepository->findAll();
> 	foreach($countries as $country) {
> 		$identityMap->registerObject($country, $country->getUid());
> 	}

Creative hack I must say! Hopefully it doesn't mess with existing uid-to-object mappings since triggering on a raw integer rather than ModelClassName:UID

> Thanks for your help so far, I really appreciate it.
> 
> have a nice weekend,

You too!

> cheers
> Alex



More information about the TYPO3-project-typo3v4mvc mailing list