[Flow] array of objects and validators

Helmut Hummel helmut.hummel at typo3.org
Wed Oct 16 00:08:39 CEST 2013


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

-- 
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 Core Developer, TYPO3 Security Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the Flow mailing list