hey all, I'm studying for my advanced exam and this came to my attention. The answer for question 4 seems illogical in context to chapter 2. The correct answer according to Mendix is 1, but this method is, to my knowledge, never used, nor explained in the chapter. in contrast, Answer 3 is shown/used and implied to be correct in 2.4.1's exercise. Am i misunderstanding or misreading something here?
Although the method is not used in the chapter (as you are saying) it seems to be the most logical option.
By first checking if the association is filled, you can prevent a retrieve when empty, seems more logical than first retrieving and then check if it is empty.