What triggers attribute validation rules of an entity?
Hi, Can someone help me out with these two questions about validation rules defined in an entity in domain model?: What are the events that trigger validation rules (on change, commit | before, after, etc..)? Do trigger events occur on object or attribute? I could not find answers to the above questions in mendix documentation. In fact documentation mentions that rules are executed before an object is committed, however this was not the case my tests. Thank you.
I think the documentation is outdated here, the validation is checked when attributes are being changed, not when the object is committed. So it's on the level of attributes, but it is entire objects that can be valid or not. If one of the attributes is changed so it becomes invalid, all changes are rolled back.
Sebastiaan van den Broek
Seems like the documentation is still outdated.
Hi, on the domainmodel, the validation is only executed when the object is being committed