[TYPO3-mvc] INSERT data to database

Frans Saris franssaris at gmail.com
Fri Jul 12 12:58:44 CEST 2013


Hi Andrea,

I see no repository->add() call.

Gr. Frans
Op 12 jul. 2013 12:43 schreef "Andrea Schmuttermair" <abo at schmutt.de> het
volgende:

> 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@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
>> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>>
>
>
>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list