[FLOW3-general] Update multiple Objects
Karsten Dambekalns
karsten at typo3.org
Thu Jan 5 09:35:24 CET 2012
Hi Thomas.
On 05.01.12 00:36, Thomas Rödiger wrote:
> I'm trying to find a way to update multiple objects/rows in one query.
...
> so whats the flow3 way to do this? I'didnt find anything.
Use the Doctrine 2 way and do it with DQL. Make your repository extend
Persistence\Doctrine\Repository instead of Persistence\Repository and
you'll have $this->EntityManager available. From there simply follow
http://www.doctrine-project.org/docs/orm/2.1/en/reference/dql-doctrine-query-language.html
and
http://www.doctrine-project.org/docs/orm/2.1/en/reference/batch-processing.html#bulk-updates
Regards,
Karsten
More information about the FLOW3-general
mailing list