public function validateMapping()
    {
        try {
            $validator = new SchemaValidator($this->entityManager);
            return $validator->validateMapping();
        } catch (\Exception $exception) {
            return [[$exception->getMessage()]];
        }
    }
public function validateMapping()
    {
        try {
            $validator = new SchemaValidator($this->entityManager);
            return $validator->validateMapping();
        } catch (\Exception $exception) {
            return [[$exception->getMessage()]];
        }
    }
public function validateMapping ( ) { try { $ validator = new SchemaValidator ( $ this -> entityManager ) ; return $ validator -> validateMapping ( ) ; } catch ( \ Exception $ exception ) { return [ [ $ exception -> getMessage ( ) ] ] ; } }
Validates the metadata mapping for Doctrine, using the SchemaValidator
of Doctrine.

@return array
Validates the metadata mapping for Doctrine using the SchemaValidator of Doctrine .