Skip to content

Multiple repositories in the same module #38

@lucienbl

Description

@lucienbl

Hello,

Thank you for this awesome boilerplate. However I have a question about the architecture of the repositories, right now in this project, there is a UserEntity and to perform actions on it you are using repositories. You have one UserRepository which gives access to the UserEntity in the user modules, but you have an AuthRepository in the auth module which also relies on the UserEntity.

So my question is, how would you do if you need to access other entities in the same module ?

For example, imagine there is a PostEntity, and you'd like to access it in the auth module, I don't know if my concern is clear enough, let me know if I have to provide more details.

Would you just create one repository per entity in each module instead of sharing one between all the modules, is that a good practise ?

Thanks in advance for your answer !

Best regards,
Lucien

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions