Modeling with Event Sourced Aggregates

There was an error in one of the code examples that will be fixed in a future updated. The following code: if ( ! isset($this->fulfilledBy)) { throw new OrderCannotBeFulfilledTwice; } should instead be: if (isset($this->fulfilledBy)) { throw new OrderCannotBeFulfilledTwice; }

Has the course helped you?
Use the Bunq button to support to the author.

On-Site Workshop

  • customized to your business
  • interactive
  • build an event-sourcing framework
Contact for Pricing

About the Author

Shawn McCool is a software consultant and educator with over 20 years of industry experience.