Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6378437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:00:25+00:00 2026-05-25T02:00:25+00:00

I do not have the Eric Evans’ Domain-driven design book on me, but it

  • 0

I do not have the Eric Evans’ Domain-driven design book on me, but it says essentially

External objects may not hold a reference to an entity that is
internal to the aggregate. External objects must reference the
aggregate root only, no internal objects.

For example, my Team aggregate root has a method called AddPlayer() and returns the Player entity added. Does this mean I am violating the rule or is it saying I cannot pull a Player entity out of thin air, for example pulling it from a repository outside of its aggregate boundary?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:00:25+00:00Added an answer on May 25, 2026 at 2:00 am

    This is always a tricky issue and is most likely an indication that your design does not quite fit your domain. I have a bit to say about this on my blog (should you be interested):

    http://www.ebenroux.co.za/post/2010/08/20/Natrual-Aggregates-vs-Synthetic-Aggregates.aspx

    You have a Team and you have a Player. That would be 2 Aggregate Roots. Making Team the Aggregate Root and Player just a contained entity is what is probably causing you pain. In real life a player need not belong to a team and it also depends on what your ‘team’ is. Is it just the collective name, or the current members, or the actual folks that can take to the field on a given day?

    So you will probably end up with different ‘teams’:

    • Team
    • Squad
    • GameSquad

    So the players are not necessarily part of the aggregate but rather the aggregate can have some kind of ownership with probably a rather weak reference to the player (such as only an ID or some value object). Something to that effect.

    But to get back to what Eric refers to in his book: I think it relates to something like this (using your mould):

    var line = Order.AddLine(SomeProduct);

    Here it shouldn’t make too much sense having a reference to the actual entity within the aggregate as it has no lifecycle of it’s own. Well, in this case the order line is not even an entity.

    There has also been some discussion around whether repository only return ARs or Entities (that, in some repositories, are ARs). According to what I have found the blue book your can retrieve an entity from a repository.

    Anyway. Just some thoughts. HTH 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just been re-reading Domain-Driven Design: Tackling Complexity in the Heart of Software
I am reading Eric Evans book about DDD and I have a question to
I have a User class which may or may not have an associated Department.
I do not have problem as such but I am quite new to Ruby.
I usually do not have difficulty to read JavaScript code but for this one
sorry but I do not have the actual code with me, but I will
I've read in DDD book (Eric Evans) that procedures which require to be used
Why does Eric Meyer have not advisable, presentational, deprecated, and non-semantic tags in his
I’ve been persuaded by Eric Evans’ book and am integrating DDD into my framework.
Did not have luck with these examples: Javascript File remove Javascript FSO DeleteFile Method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.