> On 3 Mar 2017, at 17:24, Hilaire <hila...@drgeo.eu> wrote: > > I don't understand why I should use a query! > I already have an instance of the object fetched from the repo but its > attributes are not resolved when read from an iterator block: I can't > pick up the one I want.
mmm, attributes have to be solved, otherwise you have a problem… I mean, when you bring an object from mongo, it will fetch also all attributes (in case those attributes are collections it will bring a proxy but it will solve it as soon as you ask something to them, so is transparent to you). So, there is something that is not working in your model, I think… Esteban > These attributes are not root, to the contrary to what I wrote initially. > > Hilaire > > Le 03/03/2017 à 12:29, Esteban Lorenzano a écrit : >> if you have objects in memory you can do >> >> MyRoot selectAll select: [ :each | whateverYouWantBecauseYouAreInPharo ]. >> >> but if you do >> >> MyRoor selectMany: [ :each | … here you need to apply a mongo query, you >> will not have the objects until query is executed and result is retrieved ] >> >> Esteban > > -- > Dr. Geo > http://drgeo.eu > >