[TYPO3-mvc] INSERT data to database
Andrea Schmuttermair
abo at schmutt.de
Fri Jul 12 12:43:34 CEST 2013
Oh I forgot: TYPO3 Version 4.5
Quoting Andrea Schmuttermair <abo at schmutt.de>:
> Hello,
>
> currently I try to write an import Action:
> - loading data from another source
> - create a Modell
> - INSERT in database
>
> But the INSERT is not working.
> While debugging that, I reduced the code now to insert just a test item:
>
> class Tx_XXX_Domain_Repository_ProductsItemsRepository extends
> Tx_Extbase_Persistence_Repository {
>
> public function importProducts() {
> $productItem =
> $this->objectManager->create('Tx_XXX_Domain_Model_ProductsItems');
> $productItem->setArticleNo("1234123123");
> $this->persistenceManager->persistAll();
> }
> }
>
> This is not working, what am I missing?
> Function is called, storagePid is set, Object Manager and
> Persistance Manager are created, I have even debugged the persistAll
> function, it is called.
> But no entry in database???
>
> Thanks for any ideas!
>
> Andrea
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list