[Flow] Could not safe unidirectional ManyToMany data
Steffen Wickham
steffen at gaming-inc.de
Thu Mar 26 01:45:49 CET 2015
Hello everybody,
I'm extending my latest tool and want to add a function for saving the
seen status of an issue. I thought a unidirectional ManyToMany relation
as described in [1] between my Issue- and my Party-model will work it
out but I'm running into troubles. When I add a Party to the
"seenByUsers" attribute of Issue it will be added successfully to the
model (tested via var_dump) but when I persist it, it wouldn't be saved.
There are no error or debug messages which help to track this problem
down. Maybe you can help me and see my mistake....
I put the relevant parts to [2] but removed some unneccessary parts. I
know my naming of these attributes is not the best but I couldn't find
any better name. Anyways: Tables and such stuff is genrated successfully
and I have to use persistAll as the showAction is a GET-Only method. Any
help is really appreciated! :)
Best regards,
Steffen
[1]
http://wiki.typo3.org/Flow_Cookbook#Create_unidirectional_one-to-many_relations
[2] https://gist.github.com/BlackIPS/2466eba0b86a4597ee79
More information about the Flow
mailing list