[Flow] Ignore Validation for Domain property
Zedd
zedd at akii.de
Fri Sep 19 09:31:53 CEST 2014
Hi,
you can use validation groups for that (http://docs.typo3.org/flow/TYPO3FlowDocumentation/stable/TheDefinitiveGuide/PartIII/Validation.html#advanced-feature-partial-validation).
Greetings
Philipp Maier
On Sep 19, 2014, at 9:27 AM, Rocky <rockysynergy at gmail.com> wrote:
> Hi,
>
> I have three entity domain objects. Their relationships are:
> 1, One Region has many Schools
> 2, One School has many Applications
>
> I do not want to validate Region and Applications when creating and updating School. How can I achieve this?
>
> I tried below stuff but without luck:
> 1, Add @Flow\IgnoreValidation("Region") to School's region property but got Exception say "IgnoreValidation is not allow for class property".
> 2, Add @Flow\IgnoreValidation("Region") to School's setRegion method but it does not work as expected
>
> I do not want to skip validation for other properties of the School object, thus I could not add IgnoreValidation for the whole school argument in the SchoolController action methods.
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list