[TYPO3-mvc] Validating nested objects on create
Franz Koch
typo3.RemoveForMessage at elements-net.de
Sat Nov 13 10:28:12 CET 2010
Hey Astrid,
> 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'd say custom validators combined with custom viewHelpers to display
the nested errors (see my comments on the ticket). With those I managed
to validate 1:1 relations for now, but 1:n or n:m relations
(objectStorages) should also work, although they are more tricky to
display correctly (bound to the related object while it doesn't have a
identifier yet).
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list