Results 260 comments of webDEVILopers

Sure @rubenrubiob , maybe you could just open up a new issue "Where to put read models" on this repo and add your examples. We can discuss some solutions then....

On extending the `EntityRepository`: I've seen several examples inside the @dddinphp PHP in DDD book doing it: ``` php class DoctrineOrderRepository extends EntityRepository implements OrderRepository ``` I guess this is...

A nice compromise on Naming Conventions by @theUniC: > I think that naming them DoctrineORMFooRepository or DoctrineODMBarRepository it's a pretty simple and good solution. But I guess I will go...

Some more notes on extending repositories: Some of the @dddinphp book examples show the minimum implementation for `EntityRepository` using a custom constructor: ``` php class DoctrinePostRepository implements PostRepository { protected...

After a lot of research - thanks for everybody involved here - I started my first blog post about my experiences with this topic: - http://blog.webdevilopers.net/domain-driven-design-repositories-with-doctrine-orm-and-odm-in-symfony/

Some related posts: * http://wouterj.nl/2016/12/repositories-are-just-collections/ by @WouterJ * https://stovepipe.systems/post/service-decoration-in-practice by @yannickl88 @kbond

Thanks for your thoughts @deeky666 . I get your point! I guess the same is true for the @hibernate API since @doctrine was inspired by it? The examples in my...

@sourcerer-mike Have you tried @Happyr Doctrine Specifications as showcased in https://github.com/webdevilopers/php-ddd/issues/17 ? * https://github.com/Happyr/Doctrine-Specification#the-practical-differences

@yvoyer suggests on Twitter: > Primitives in Event's attributes, Value object as returned value of methods. In the @prooph example methods return the "primitive" payload: ```php class UserWasCreated extends AggregateChanged...

I agree and like your example. Currently the prooph example looks very "aenemic": ```php class UserWasCreated extends AggregateChanged { public function username(): string { return $this->payload['name']; } } ``` Not...