2017-06-13 7:39 GMT-03:00 Tim Mackinnon <tim@testit.works>: > Phil - to be clear, I think your underlying implementation is great - it > provides a great building block. > > However, just as with databases, when you build something higher level on > top - the question comes up about how much you hide that retrieval > mechanism. The GTInspector argument is an interesting one from a pure domain > understanding - and possibly armed with the underlying piping you have > provided, it is then up to me to layer my understanding of the higher level > model on top. > > I perhaps should look at glorp a bit more carefully as maybe there is > inspiration there.
Let's talk on the Discourse chat about this, but as a short description, Glorp has a Facade object (the GlorpSession) that knows how to delegate most actions to internal parts. But objects don't "know" the session they belong to, because the ORM is orthogonal to the domain model. Esteban A. Maringolo