[TYPO3-mvc] @dontpersist

Franz Koch typo3.RemoveForMessage at elements-net.de
Wed Mar 16 12:33:02 CET 2011


Hey,

...
> After upgrade to 4.5 I get errors, since the persistAll call tries to
> persist the objects from the Couch DB in the TYPO3 DB and (of course)
> the tables are missing. The projects need no persistence. But I do
> modify them before mapping the, so that's perhaps the reason, why they
> are persisted.
>
> Perhaps a repository would be the right place to add a doNotPersist flag
> to objects...?

how about simply cloning the objects before you do any changes to them? 
That way the won't get persisted.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list