public function apply($event, MetaData $metaData = null) { if (null === $this->aggregateRoot) { throw new \RuntimeException("The aggregate root is unknown. " . "Is this entity properly registered as the child of an aggregate member?"); } $this->aggregateRoot->apply($event, $metaData); }
public function apply($payload, MetaData $metaData = null) { parent::apply($payload, $metaData); }