protected function classMetadataExists($type)
    {
        $className = $this->getClassNameForType($type);
        try {
            $metadata = $this->mf->getMetadataFor($className);
            return true;
        } catch (MappingException $e) {
            return false;
        }
        return false === $this->shouldFilterClassMetadata($metadata);
    }
protected function classMetadataExists($type)
    {
        $className = $this->getClassNameForType($type);
        try {
            $metadata = $this->mf->getMetadataFor($className);
            return true;
        } catch (MappingException $e) {
            return false;
        }
        return false === $this->shouldFilterClassMetadata($metadata);
    }
protected function classMetadataExists ( $ type ) { $ className = $ this -> getClassNameForType ( $ type ) ; try { $ metadata = $ this -> mf -> getMetadataFor ( $ className ) ; return true ; } catch ( MappingException $ e ) { return false ; } return false === $ this -> shouldFilterClassMetadata ( $ metadata ) ; }
Determines if Doctrine ClassMetadata exists for an entity type.

@param   string  $type
@return  bool
Determines if Doctrine ClassMetadata exists for an entity type .