[FLOW3-general] Persistence does not work on update

Christian Peters chp at digitale-avantgarde.com
Wed Feb 1 14:12:52 CET 2012


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