PHP Class Dumplie\SharedKernel\Tests\Doctrine\EntityManagerBuilder

显示文件 Open project: dumplie/dumplie Class Usage Examples

Public Methods

Method Description
__construct ( Doctrine\DBAL\Connection $connection )
build ( ) : EntityManager
registerCustomType ( string $typeName, string $className ) : EntityManagerBuilder
registerLogger ( Doctrine\DBAL\Logging\SQLLogger $logger ) : EntityManagerBuilder
registerMapping ( string $path, string $namespace ) : EntityManagerBuilder

Method Details

__construct() public method

public __construct ( Doctrine\DBAL\Connection $connection )
$connection Doctrine\DBAL\Connection

build() public method

public build ( ) : EntityManager
return Doctrine\ORM\EntityManager

registerCustomType() public method

public registerCustomType ( string $typeName, string $className ) : EntityManagerBuilder
$typeName string
$className string
return EntityManagerBuilder

registerLogger() public method

public registerLogger ( Doctrine\DBAL\Logging\SQLLogger $logger ) : EntityManagerBuilder
$logger Doctrine\DBAL\Logging\SQLLogger
return EntityManagerBuilder

registerMapping() public method

public registerMapping ( string $path, string $namespace ) : EntityManagerBuilder
$path string
$namespace string
return EntityManagerBuilder