[Flow] Ignore Validation for Domain property

Rocky rockysynergy at gmail.com
Fri Sep 19 09:27:29 CEST 2014


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.



More information about the Flow mailing list