private function dispatchMetadataEvent($eventName, EntityMetadata $metadata)
    {
        $metadataArgs = new Events\MetadataArguments($metadata);
        $this->dispatcher->dispatch($eventName, $metadataArgs);
    }
private function dispatchMetadataEvent($eventName, EntityMetadata $metadata)
    {
        $metadataArgs = new Events\MetadataArguments($metadata);
        $this->dispatcher->dispatch($eventName, $metadataArgs);
    }
private function dispatchMetadataEvent ( $ eventName , EntityMetadata $ metadata ) { $ metadataArgs = new Events \ MetadataArguments ( $ metadata ) ; $ this -> dispatcher -> dispatch ( $ eventName , $ metadataArgs ) ; }
Dispatches a Metadata event

@param   string          $eventName
@param   EntityMetadata  $metadata
Dispatches a Metadata event