I created a cumulative class with a name Question. It contains references to objects Answer, Category, Feedback. Should QuestionRepository be a class containing all the methods that query the database associated with the Question, as well as all the methods for requesting feedback, response, etc.? Or they must be separate classes, such as QuestionRepository, FeedbackRepository, etc.
Question
Answer
Category
Feedback
On the DDD website :
For each type of object that needs global access, create an object that can provide the illusion of a collection in memory of all objects of this type.
, , .. , , . , , , , . , .
, .
DDD - , DDD, .
, , , 1 , 1
, QuestionRepository .
, - , IMO , StaticRepository