DEV Community

Discussion on: Domain Driven Design with PHP and Symfony

Collapse
 
mohammedabdoh profile image
Mohammed Abdoh

I like your implementation. I have one concern to share with you. Don't you think that the UserInterface for instance is violating the idea of CQRS in common? Because in CQRS you are splitting your writes from your reads and in this case, your repository might only have to have one read method to load the aggregate by its ID while it case persist the aggregate