protected function getNewInstance()
    {
        $className = $this->objectMetadata->getName();

        if (class_exists($className) === false) {
            throw new \RuntimeException('Unable to create new instance of ' . $className);
        }

        return new $className;
    }
protected function getNewInstance()
    {
        $className = $this->objectMetadata->getName();

        if (class_exists($className) === false) {
            throw new \RuntimeException('Unable to create new instance of ' . $className);
        }

        return new $className;
    }
protected function getNewInstance ( ) { $ className = $ this -> objectMetadata -> getName ( ) ; if ( class_exists ( $ className ) === false ) { throw new \ RuntimeException ( 'Unable to create new instance of ' . $ className ) ; } return new $ className ; }
Return a new instance of the object

@return object
Return a new instance of the object