[TYPO3-mvc] Adding new records does not consider newRecordStoragePid
Franz Koch
typo3.RemoveForMessage at elements-net.de
Sun Aug 14 11:59:39 CEST 2011
Hi,
> my extension recieves a data array from a flash application and makes a
> domain model object from it.
> Now i want to store this object as a new record in the database.
> Therefore i call this code that works as expected:
>
> ...
> require_once(t3lib_extMgm::extPath('itb_memento').'Classes/Domain/Repository/ItemFlashPropertyRepository.php');
>
>
> $repo =
> t3lib_div::makeInstance('Tx_ItbMemento_Domain_Repository_FlashAppStateRepository');
>
> $repo->add($obj);
> $repo->_persistAll(); #this method calls the repository's
> persistenceManager persistAll() method
> ...
in which context do you call this? Inside a controller dispatched from
Extbase or somewhere outside a Extbase environment?
And which Extbase version are you using (1.2.x I suppose)?
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list