public function newInstance()
    {
        $class = $this->entityMap->getClass();

        if ($this->entityMap->useDependencyInjection()) {
            return $this->newInstanceUsingDependencyInjection($class);
        }

        return $this->newInstanceUsingInstantiator($class);
    }
public function newInstance()
    {
        $class = $this->entityMap->getClass();

        if ($this->entityMap->useDependencyInjection()) {
            return $this->newInstanceUsingDependencyInjection($class);
        }

        return $this->newInstanceUsingInstantiator($class);
    }
public function newInstance ( ) { $ class = $ this -> entityMap -> getClass ( ) ; if ( $ this -> entityMap -> useDependencyInjection ( ) ) { return $ this -> newInstanceUsingDependencyInjection ( $ class ) ; } return $ this -> newInstanceUsingInstantiator ( $ class ) ; }
Create a new instance of the mapped entity class.

@return mixed
Create a new instance of the mapped entity class .