[Flow] Question about $this->persistenceManager->persistAll();
Kay Strobach
typo3 at kay-strobach.de
Tue Nov 19 13:39:28 CET 2013
Hello Christian,
sure.
It's about this Aspect:
https://github.com/kaystrobach/FLOW.Developmenttools/blob/master/Classes/KayStrobach/DevelopmentTools/Aspects/TranslatorAspect.php
The Aspect collects all translation requests during a run.
Surely the Aspect should not turn any request into a safe one by
persistAll. Therefore I'd like to persist just the single Translation i
want to add to the database.
Alternativly i have to think about writing the Data into a file -
perhaps this is a better solution. Can i enforce a model to be an
sqllite one?
Regards
Kay
Am 19.11.13 08:11, schrieb Christian Müller:
> Hi Kay,
>
> Kay Strobach wrote:
>> Hello guys,
>>
>> for my KayStrobach.DevelopmentTools for FLOW i'd like to save a model
>> object in an unsage request.
>> Sadly i can't define which object should be explicitly saved. I just can
>> safe all changes :(
>
> Yes, but you can only add the one object to the repository. Of course if
> it has relations to other objects those will be stored as well, you
> cannot prevent that...
>
> I guess I would need to see some code to give better advise on what to do.
>
> Cheers,
> Christian
--
http://www.kay-strobach.de - Open Source Rocks
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
Answer was useful - feel free to donate:
-
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
- https://flattr.com/profile/kaystrobach
More information about the Flow
mailing list