abstract class DoctrineCommand extends ContainerAwareCommand (View source)

Base class for Doctrine console commands to extend from.

Methods

EntityGenerator
getEntityGenerator()

get a doctrine entity generator

EntityManager
getEntityManager(string $name, null|int $shardId = null)

Get a doctrine entity manager by symfony name.

Connection
getDoctrineConnection(string $name)

Get a doctrine dbal connection by symfony name.

Details

protected EntityGenerator getEntityGenerator()

get a doctrine entity generator

Return Value

EntityGenerator

protected EntityManager getEntityManager(string $name, null|int $shardId = null)

Get a doctrine entity manager by symfony name.

Parameters

string $name
null|int $shardId

Return Value

EntityManager

protected Connection getDoctrineConnection(string $name)

Get a doctrine dbal connection by symfony name.

Parameters

string $name

Return Value

Connection