Can I define in Mendix Domain model relation like 1-3?

1
I would need that an entity must have at least 1 and at most 3 other related entities. I assume this must be done programmatically by retrieving data, but just asking to be sure I do not miss anything simple. Thanks
asked
1 answers
1

Hi Pietro,

It isn't possible to do this in your domain model, but you can easily do this by adding a before commit microflow. Add an event handler to your entity and perform a simple check with a retrieve and return false.

answered