Method | Description | |
---|---|---|
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, array $connections, array $entityManagers, $defaultConnection, $defaultEntityManager ) | ||
getConnection ( string $name = null ) : Doctrine\DBAL\Connection | Gets the named connection. | |
getConnectionNames ( ) : array | Gets all connection names. | |
getConnections ( ) : array | Gets an array of all registered connections | |
getDefaultConnectionName ( ) : string | Gets the default connection name. | |
getDefaultEntityManagerName ( ) : string | Gets the default entity manager name. | |
getEntityManager ( string $name = null ) : EntityManager | Gets a named entity manager. | |
getEntityManagerNames ( ) : array | Gets all connection names. | |
getEntityManagers ( ) : array | Gets an array of all registered entity managers | |
getEntityNamespace ( string $alias ) : string | Resolves a registered namespace alias to the full namespace. | |
getRepository ( string $entityName, $entityManagerName = null ) : Doctrine\ORM\EntityRepository | Gets the EntityRepository for an entity. | |
resetEntityManager ( string $name = null ) : EntityManager | Resets a named entity manager. |
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, array $connections, array $entityManagers, $defaultConnection, $defaultEntityManager ) | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface | |
$connections | array | |
$entityManagers | array |
public getConnection ( string $name = null ) : Doctrine\DBAL\Connection | ||
$name | string | The connection name (null for the default one) |
return | Doctrine\DBAL\Connection |
public getConnectionNames ( ) : array | ||
return | array | An array of connection names |
public getConnections ( ) : array | ||
return | array | An array of Connection instances |
public getDefaultConnectionName ( ) : string | ||
return | string | The default connection name |
public getDefaultEntityManagerName ( ) : string | ||
return | string | The default entity manager name |
public getEntityManager ( string $name = null ) : EntityManager | ||
$name | string | The entity manager name (null for the default one) |
return | EntityManager |
public getEntityManagerNames ( ) : array | ||
return | array | An array of connection names |
public getEntityManagers ( ) : array | ||
return | array | An array of EntityManager instances |
public getEntityNamespace ( string $alias ) : string | ||
$alias | string | The alias |
return | string | The full namespace |
public getRepository ( string $entityName, $entityManagerName = null ) : Doctrine\ORM\EntityRepository | ||
$entityName | string | The name of the entity. |
return | Doctrine\ORM\EntityRepository |
public resetEntityManager ( string $name = null ) : EntityManager | ||
$name | string | The entity manager name (null for the default one) |
return | EntityManager |