Is it okay to get a read-only collection from an aggregate without going through the root to get it? My model does some of this right now and I was wondering if that\'s an a
Actually Eric has changed his mind about the strictness of the Aggregate Root Rules.
He recently said something along the lines of
"Chill out dude. Try to stop yourself from breaking the rules man. But, hey, don't beat yourself up over it. DDD rocks dude, but break the Agg rules if ya really need to. Yeah, peace."
See: "Eric Evans: What I've learned about DDD since the book" http://ffffdcommunity.org/library/evans_2009_1
Evans says "The root is the only member of the AGGREGATE that outside objects are allowed to hold references to..." (p. 127)
My understanding is that the aggregate should appear as a unit to outside objects. Also, the Law of Demeter would seem to apply. Bottom line, I don't think it's acceptable.