beberlei / litecqrs-php

Small convention based CQRS library for PHP
MIT License
553 stars 47 forks source link

DomainObjectChanged's second argument is now optional. #20

Closed henrikbjorn closed 12 years ago

henrikbjorn commented 12 years ago

The reason behind this changed is that i have found i mostly just send the id to the event handlers and they will fetch the newest aggregate and take appropiate action (write to the read tables).

And that id is given through the $event->getAggregateId() that is stored in a Message on the Event.