src/Domain/EventSourcing/EventSourcedEntity.php
public function handleRecursively(Event $event): void
    {
        $this->handle($event);

        foreach ($this->childEntities() as $entity) {
            $entity->registerAggregateRoot($this->getAggregateRoot());
            $entity->handleRecursively($event);
        }
    }
public function handleRecursively(Event $event): void
    {
        $this->handle($event);

        foreach ($this->childEntities() as $entity) {
            $entity->registerAggregateRoot($this->getAggregateRoot());
            $entity->handleRecursively($event);
        }
    }
public function handleRecursively ( Event $ event ) : void { $ this -> handle ( $ event ) ; foreach ( $ this -> childEntities ( ) as $ entity ) { $ entity -> registerAggregateRoot ( $ this -> getAggregateRoot ( ) ) ; $ entity -> handleRecursively ( $ event ) ; } }
Handles the domain event recursively

@internal

@param Event $event The domain event

@return void
Handles the domain event recursively