Hi Esteban, I could, but I don't understand why the attribute does not resolve to an object equals to the other one in memory. If I add an inspect to the attributes, it resolves correctly and code work as expected: myObjectInRepo select: [ :each | each anAttribute inspect. someObjects includes: each anAttribute "the one Voyage should fetch"] There is some lazyness in resolving the object. I implemented = to bypass the == and primivite but it does not help. For efficiency and special aspect of the model, I prefer to stick to the Smalltalk iterators when possible. Hilaire Le 03/03/2017 à 12:02, Esteban Lorenzano a écrit :
why? you cannot transform that into a mongo query?
something like:
myObjectInRepo select: [ :each | (each at: âattributeâ) in: someObjectsCollection ]
Esteban
-- Dr. Geo http://drgeo.eu