Get an entity builder instance for a given class.
public getEntityBuilder ( string $className = null, Bolt\Storage\Mapping\ClassMetadata $classMetadata = null ) : |
||
$className | string | |
$classMetadata | Bolt\Storage\Mapping\ClassMetadata | |
리턴 |
/** * @return Builder $builder */ public function getEntityBuilder() { $builder = $this->em->getEntityBuilder(); $builder->setClass($this->getEntityName()); $builder->setClassMetadata($this->getClassMetadata()); return $builder; }