But using $this->repository->add($object) (if using the Doctrine ORM plugin) doesn't work if the entity class extends DomainEventProvider; it requires AggregateRootInterface :)

Thus you cannot use raise() and apply() with the same Entity