[Flow] array of objects and validators
mario chiari
ml at mariochiari.net
Wed Oct 16 09:06:18 CEST 2013
Hi
thanks for your reply. I am using flow 2.0 (no patches)
I double checked and I would say that indeed there is something that
does not work.
My latest update is at http://pastebin.com/2Gip3DSJ .
You may see what happens at
http://postimg.org/image/46hd8n4f1/ (one father template), and
http://postimg.org/image/drde8iu71/ (one father, two sons template)
The simple createAction suggested by Bastian, creates both a father and
his two sons, but does not fill in automagically the father's
persistence_object_identifier into his son records. My (corrected)
createAction does it (albeit, not automagically)
Helmut, how do I download the patches you suggest? I am not familiar
with that.
thanks cheers
mario
ps the subject is wrong, clearly it is not a issue with arrays. Sorry.
On Wed, 2013-10-16 at 00:08 +0200, Helmut Hummel wrote:
> Hi!
>
> On 15.10.13 16:11, mario chiari wrote:
>
> > Anyway, I have some update, see at http://pastebin.com/2Gip3DSJ (see
> > description of what happens at the very end)
> > Now, it seems that something goes wrong because there are input fields
> > for both father and sons objects. Do you spot anything I wrote wrong?
>
> Do you use Flow 2.0 ?
>
> You may run into this issue regarding the validation:
>
> https://review.typo3.org/24218
>
> 2.0 is affected but the patch has not been backported yet to 2.0
>
> Regarding the fact, that the father property of the sons is NULL:
>
> I'm not sure if it is a bug, but at least it also did not work for me.
>
> Let's take another example, the viewhelpertest package.
>
> A User[1] has invoices[2] which point to the user
>
> With a Fluid form of a new action with user.firstname, user.lastname,
> user.invoices.0.subject form fields, the property mapper maps a correct
> user object with a invoice object that lacks the user object in the
> customer property.
>
> I guess this is an issue with the property mapper which might need
> workarounds with hidden fields to set the customer correctly, but I also
> don't know how to set this up correctly
>
> Kind regards,
> Helmut
>
>
> [1]https://git.typo3.org/Packages/Viewhelpertest.git/blob/10e40061e731bd402b33e67182172d3c7e469a49:/Classes/TYPO3/Viewhelpertest/Domain/Model/User.php
>
> [2]https://git.typo3.org/Packages/Viewhelpertest.git/blob/10e40061e731bd402b33e67182172d3c7e469a49:/Classes/TYPO3/Viewhelpertest/Domain/Model/Invoice.php
>
More information about the Flow
mailing list