webDEVILopers
webDEVILopers
Came from: * https://twitter.com/webdevilopers/status/1306286988161617926 I have a service that extracts the MIN and MAX date of a period. This is the original **INSIDE** approach #**1** **Domain Service** ```php
All events of multiple aggregates have to be selected, changed in some domain relevant ways and be merged into a new aggregate. I decided to select the events from the...
Originally posted by @gquemener : > Let's define domain related validation once and for all within well-defined VO and expose those errors to the world. > https://gist.github.com/gquemener/09b2bc303e63dfc3123f7d540e9891a0 > It prevents...
Came from: * https://twitter.com/webdevilopers/status/1286645241341255682 /cc @matthiasnoback @ashishkpoudel @cherifGsoul @stemmlerjs > Just finished reading your "Web Application Architecture" book @matthiasnoback . I finally understood the difference between READ and VIEW models....
Came from: * https://twitter.com/webdevilopers/status/1286211935407616000 Example: * https://gist.github.com/webdevilopers/74c1f109c0f095ab65f7eef1f56a10f1 /cc @AntonStoeckl Our `FirstName` value object has changed over time. It started with no constraints (**FirstName_V1**). That's whay event payload like the following...
Came from: * https://twitter.com/webdevilopers/status/1282582468915331072 * https://gist.github.com/webdevilopers/687c8b34d68e97a8f93df5db09242406 /cc @JulianMay An `EmploymentContract` is an event-sourced Aggregate Root (A+ES). It holds a reference to a A+ES `Person`. ```php
We have a `Contract` Domain Model holding a huge collection of `Timesheets`. I just added some simple Symfony code snippets using Doctrine Entities and Annotations. All Entities are later moved...
The example by @yvoyer features a custom implementation of the Event Bus e.g.. But it will also show how to integrate with Symfony components. Another custom example by @juliendufresne: https://github.com/php-ddd/php-ddd-bundle/tree/master/src...
In my Entity `EmploymentContract` I have the value objects `ContractType` - "fixed_term" or "permanent" and `EmploymentPeriod` with "startDate" and "endDate". When the `ContractType` is "permanent" then the "endDate" should be...
Given is an event-sourced `EmploymentContract` holding an `EmploymentPeriod` with a start and end date. It is then possible to "deploy employees of a contract to other work places". *But the...