[TYPO3-english] Persistent objects on extbase

Henjo Hoeksma | Stylence me at henjohoeksma.nl
Fri Jan 25 15:23:35 CET 2013


 Hi Sergio,

you can use the PersistenceManager class to manually persist the objects.

$persistenceManager =
$this->objectManager->get('Tx_Extbase_Persistence_Manager');
$persistenceManager->persistAll();

Beware of performance issues when using this a lot.

Kind regards,

Henjo


On Fri, Jan 25, 2013 at 3:22 PM, Sergio <naguib.mahfuz at gmail.com> wrote:

> Hi list,
>
> I have a certain "Action" in my extension controller that adds an object
> to a repository. Everything is good but I would like to make some
> calculation with the objects in the repository in this same action. The
> problem is, as I understand, the object is not "persisted" until the
> function finishes.
>
> Is there a way the object to be persisted immediately?
>
> Thanks in advance,
> Sergio
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list