src/StorageMetadataFactory.php
private function validateCollectionNaming(EntityMetadata $metadata)
    {
        $persistence = $metadata->persistence;
        if (false === $this->entityUtil->isEntityTypeValid($persistence->collection)) {
            throw MetadataException::invalidMetadata(
                $metadata->type,
                sprintf('The entity persistence collection "%s" is invalid based on the configured name format "%s"',
                        $persistence->collection,
                        $this->entityUtil->getRestConfig()->getEntityFormat()
                )
            );
        }
    }
private function validateCollectionNaming(EntityMetadata $metadata)
    {
        $persistence = $metadata->persistence;
        if (false === $this->entityUtil->isEntityTypeValid($persistence->collection)) {
            throw MetadataException::invalidMetadata(
                $metadata->type,
                sprintf('The entity persistence collection "%s" is invalid based on the configured name format "%s"',
                        $persistence->collection,
                        $this->entityUtil->getRestConfig()->getEntityFormat()
                )
            );
        }
    }
private function validateCollectionNaming ( EntityMetadata $ metadata ) { $ persistence = $ metadata -> persistence ; if ( false === $ this -> entityUtil -> isEntityTypeValid ( $ persistence -> collection ) ) { throw MetadataException :: invalidMetadata ( $ metadata -> type , sprintf ( 'The entity persistence collection "%s" is invalid based on the configured name format "%s"' , $ persistence -> collection , $ this -> entityUtil -> getRestConfig ( ) -> getEntityFormat ( ) ) ) ; } }
Validates that the collection naming is correct, based on entity format config.

@param   EntityMetadata  $metadata
@throws  MetadataException
Validates that the collection naming is correct based on entity format config .