Why does Mendix retrieve the IDs of the objects of the owned associations when retrieving an object?

0
As title says. Im curious why Mendix retrieves the ID’s of the objects of the owned associations when retrieving an object.   What is the practical reason for this?   See screenshot with an example.   Thanks,   Tim
asked
1 answers
1

Hi Tim,

You can do a bunch of useful stuff with that.

For instance, you can check if the owner has the association or not using $Orderline/Orderline_Order != empty. You can use it in an XPath when retrieving the referenced object: [id = $Orderline/Orderline_Order]

 

 

There are probably a lot of technical reasons as well which I won’t theorize too much about here, but those are some relevant examples to you as a developer. 

answered