public function getEntityBuilder($className = null, ClassMetadata $classMetadata = null)
    {
        $builder = new Entity\Builder($this->getMapper(), $this->getFieldManager());

        if ($className !== null) {
            $builder->setClass($className);
        }

        if ($classMetadata !== null) {
            $builder->setClassMetadata($classMetadata);
        }

        return $builder;
    }
public function getEntityBuilder($className = null, ClassMetadata $classMetadata = null)
    {
        $builder = new Entity\Builder($this->getMapper(), $this->getFieldManager());

        if ($className !== null) {
            $builder->setClass($className);
        }

        if ($classMetadata !== null) {
            $builder->setClassMetadata($classMetadata);
        }

        return $builder;
    }
public function getEntityBuilder ( $ className = null , ClassMetadata $ classMetadata = null ) { $ builder = new Entity \ Builder ( $ this -> getMapper ( ) , $ this -> getFieldManager ( ) ) ; if ( $ className !== null ) { $ builder -> setClass ( $ className ) ; } if ( $ classMetadata !== null ) { $ builder -> setClassMetadata ( $ classMetadata ) ; } return $ builder ; }
Get an entity builder instance for a given class.

@param string        $className
@param ClassMetadata $classMetadata

@return Entity\Builder
Get an entity builder instance for a given class .