protected function getClassNameForType($type)
    {
        if (!empty($this->rootNamespace) && strstr($type, $this->rootNamespace)) {
            $type = $this->stripNamespace($this->rootNamespace, $type);
        }
        if (!empty($this->rootNamespace)) {
            return sprintf('%s\\%s', $this->rootNamespace, $type);
        }
        return $type;
    }
protected function getClassNameForType($type)
    {
        if (!empty($this->rootNamespace) && strstr($type, $this->rootNamespace)) {
            $type = $this->stripNamespace($this->rootNamespace, $type);
        }
        if (!empty($this->rootNamespace)) {
            return sprintf('%s\\%s', $this->rootNamespace, $type);
        }
        return $type;
    }
protected function getClassNameForType ( $ type ) { if ( ! empty ( $ this -> rootNamespace ) && strstr ( $ type , $ this -> rootNamespace ) ) { $ type = $ this -> stripNamespace ( $ this -> rootNamespace , $ type ) ; } if ( ! empty ( $ this -> rootNamespace ) ) { return sprintf ( '%s\\%s' , $ this -> rootNamespace , $ type ) ; } return $ type ; }
Gets the Doctrine class name from an entity type.

@param   string  $type
@return  string
Gets the Doctrine class name from an entity type .