[FLOW3-general] Persistence does not work on update

Christian Peters chp at digitale-avantgarde.com
Fri Feb 3 17:15:52 CET 2012


Well, well,

applying this patch to the persistence manager did the trick

http://forge.typo3.org/projects/package-typo3-flow3/repository/revisions/2fdc342d181d816f6a6ee41b7b30500f3a8741d7/entry/Classes/Persistence/Doctrine/PersistenceManager.php




2012/2/1 Christian Peters <chp at digitale-avantgarde.com>

> Hello all!
>
> I have this controller:
>
> http://pastebin.com/jpUzA4Vh
>
> It will be an API, that's working with the JSON View.
>
> Basically I'm retrieving a listContainer via a key and a secret value.
> This list container has a corporation (the list owner). The corporation
> does not contain a reference to the list container. But the corporation has
> it's own repository.
>
> Based upon these assumption, the code should persist the data - but it
> does not. Everything works fine (the json contains the updated corporation
> name), but data does not get persisted.
>
> What am I doing wrong?
>
> 2nd: If I'd use a fluid template, I wouldn't have to map the properties
> for myself, flow would by silently adding the corporate-identifier to the
> form (as i understand from the docs).
>
> Is there a way to implement this behaviour if updates are made via an api
> call? In this case, the caller wouldn't know about the identifier, he would
> just have a key and a secret to identify the listcontainer.
>
> Thanks for your Help!
>
> Chris
>


More information about the FLOW3-general mailing list