[TYPO3-mvc] Validating nested objects on create

Astrid Haubold astridhaubold at gmx.net
Sat Nov 13 01:41:22 CET 2010


Am 24.08.10 12:29, schrieb Franz Koch:
> Hey again,
>
>> I seem to be to stupid to validate a nested object in a create action.
>> Here's my scenario:
>>
>> Imagine a registration form where one can enter a address along with
>> some other fields. The address is itself a object and is a property of
>> my registration object. Rendering the form and having extbase generate
>> my address property as object is working so far, except that my address
>> object doesn't get validated at all, although it has properties with
>> validation annotation.
>>
>> All other properties of my registration object get validated correctly,
>> except of the address object.
>>
>> Does anybody have a idea what could be wrong before I begin digging the
>> sources for a possible bug?
>
> should have had a look in the bugtracker first - it's a "missing
> feature" ;)
>
> http://forge.typo3.org/issues/6893
>

Hi Franz,
I am working on a first project with extbase and I'm stuck on the topic 
of validating nested Objects. I need to validate 1:1 related objects as 
well as 1:n related objects (multiple childobjects in one form). How did 
you solve it? What do you think would be the best way to deal with this 
until the feature is implemented?
I would be glad about any ideas!
Astrid


More information about the TYPO3-project-typo3v4mvc mailing list