src/StorageMetadataFactory.php
private function validateDatabase(EntityMetadata $metadata)
    {
        $persistence = $metadata->persistence;
        if (false === $metadata->isChildEntity() && (empty($persistence->db) || empty($persistence->collection))) {
            throw MetadataException::invalidMetadata($metadata->type, 'The persistence database and collection names cannot be empty.');
        }
    }
private function validateDatabase(EntityMetadata $metadata)
    {
        $persistence = $metadata->persistence;
        if (false === $metadata->isChildEntity() && (empty($persistence->db) || empty($persistence->collection))) {
            throw MetadataException::invalidMetadata($metadata->type, 'The persistence database and collection names cannot be empty.');
        }
    }
private function validateDatabase ( EntityMetadata $ metadata ) { $ persistence = $ metadata -> persistence ; if ( false === $ metadata -> isChildEntity ( ) && ( empty ( $ persistence -> db ) || empty ( $ persistence -> collection ) ) ) { throw MetadataException :: invalidMetadata ( $ metadata -> type , 'The persistence database and collection names cannot be empty.' ) ; } }
Validates that the proper database properties are set.

@param   EntityMetadata  $metadata
@throws  MetadataException
Validates that the proper database properties are set .