[Flow] Could not safe unidirectional ManyToMany data

Christian Loock chl at vkf-renzel.de
Thu Mar 26 08:02:55 CET 2015


Hey,

shouldn't you run your issue through it's repository's update method in 
order for it to get persistet?

$myIssueRepository->update($issue);


Am 26.03.2015 um 01:45 schrieb Steffen Wickham:
> 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
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list