Results 260 comments of webDEVILopers

Great follow up @Lavinski ! Unfortunately it is hard to relate to my example. As you can see I need to almost copy the original AR to create the READ...

Thanks @sstok ! > So copying the entire AR is not uncommon. That's good to know! I wonder what if I went back to my initial approach and only pass...

I like the answers by @yreynhout here: > An appointment is rescheduled from one schedule to another. The resulting event AppointmentRescheduledEvent contains both the schedule I rescheduled from and the...

The most basic way we do it is using the command handler as Ramin suggests: > Have the command handler query the read model for the ProductDetailedDescription and send that...

If you don't like to create too many properties on your aggregate the DDD red book suggests to move them to separated value objects e.g. instead of "OfferTitle" and "OfferPreword"...

Someone suggested to add the data to the command already. We prefer the command handler. If a "company name" is required and a "company ID" is given in the command...

Indeed the repository does not have to return the document. But the factory has to. So you recommend to make the repository method simply store the document but return void...

What I still dislike is the fact the creating the object also means "persisting" it. How about this? ```php final class UploadInvoiceDocumentHandler { /** @var InvoiceDocumentRepository */ private $repository; public...

A recipe or a short blog where to move and delete what would indeed be nice. Where do you put Symfony in your example -> Infrastructure\Symfony (or Framework or similar?)

Similar to your approach. But we currently also have a `Infrastructure/Symfony` directory. In addition to that a `Presentation` layer which is equal to your "`UI / UserInterface` layer. But it...