What triggers attribute validation rules of an entity?

1
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.
asked
3 answers
2

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.

answered
1

Seems like the documentation is still outdated.

https://docs.mendix.com/refguide/validation-rules

answered
0

Hi, on the domainmodel, the validation is only executed when the object is being committed

answered