• Ad Schellevis's avatar
    (model) refactor getConstraintValidators() in BaseField, add... · fe68cec4
    Ad Schellevis authored
    (model) refactor getConstraintValidators() in BaseField, add getConstraintByName() to retrieve a constraint by name/key and add functionality to explain the model field relations.
    
    Using reference tags in the constraints section its possible to tell the model which fields interact to avoid the need for a full model validation after each change.
    For example if fieldA has a constraint which relates to fieldB, the latter can add a reference to trigger validation when only fieldB changes.
    
    <Constraints>
       <check001>
         <reference>fieldB.check000</reference>
       </check001>
    </Constraints>
    fe68cec4
Name
Last commit
Last update
Mk Loading commit data...
contrib Loading commit data...
scripts Loading commit data...
src Loading commit data...
work Loading commit data...
+POST_INSTALL Loading commit data...
+PRE_DEINSTALL Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
ruleset.xml Loading commit data...