[Flow] Could not safe unidirectional ManyToMany data
Steffen Wickham
steffen at gaming-inc.de
Thu Mar 26 10:27:07 CET 2015
Hey Christian,
thank you very much. Lesson learned, I promise to stop coding when I get
tired. :D
Thanks for pointing me to my mistake. For sure I have to call the update
method first (and just add this call too)...
Thank you very much! :)
Am 26.03.15 um 08:02 schrieb Christian Loock:
> 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
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list