-
Notifications
You must be signed in to change notification settings - Fork 28
Description
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