webDEVILopers
webDEVILopers
Solution 1: A single Manager and Read Model for Projection "audience" Both tables are managed by a single read model. ```php // ... final class PgsqlAudienceProjection implements ReadModelProjection { public...
Thanks @matthiasnoback ! I agree - the only modification comes from the form happening once and the the Command is passed to the Handler. The only thing I have to...
I do something similar @yvoyer to pre-populate a Symfony Form for Orders if an optional Offer already exists: ``` php $placeOrderCommand = ($offer instanceof Offer) ? PlaceOrderCommand::fromOffer($offer) : new PlaceOrderCommand($customer->getId());...
Well that's a very interesting approach @rommsen . Havn't seen it before. Did you ever experience problems using your Data Transformers with let's say Symfony FormEvents? What do your commands...
@webmozart also added some `DDD` and `CQRS` examples to his latest form slides: - https://speakerdeck.com/webmozart/symfony-forms-101
Quote from @spike31: > I have stopped mapping class, entity, on my #symfony forms for 3-4 years, on small or very large projects. Everything is fine, my code is better...
> Some folks (I don't remember where I read it) argue that having getters in the DTO that returns value objects is considered as coupling domain layers object to the...
Feel free to join the discussion @iosifch.
We have some older applications where we still use Symfony Forms. Even there we introduced Commands to decouple our Domain Models. All this can be easily achieved. But I think...
BTW: The `symfony-5-es-cqrs-boilerplate` repo by @jorge07 will maybe soon present their example of how to deal w/ Symfony Forms, Entities and Command DTOs. As requested by @Romaixn. https://github.com/jorge07/symfony-5-es-cqrs-boilerplate/issues/221