Doctrine\Bundle\DoctrineBundle\Registry
References all Doctrine connections and entity managers in a given Container.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Registry
extends ManagerRegistry
implements
RegistryInterface
{
- // Inherited members from ManagerRegistry
- protected ContainerInterface $container;
- // methods
- public void __construct()
- public string getDefaultEntityManagerName()
- public EntityManager getEntityManager()
- public array getEntityManagers()
- public EntityManager resetEntityManager()
- public string getEntityNamespace()
- public string getAliasNamespace()
- public array getEntityManagerNames()
- public EntityManager|null getEntityManagerForClass()
- // Inherited methods from ManagerRegistry
- protected void getService()
- protected void resetService()
- public void setContainer()
- // Inherited methods from AbstractManagerRegistry
- public void __construct()
- protected abstract getService()
- protected abstract void resetService()
- public string getName()
- public void getConnection()
- public void getConnectionNames()
- public void getConnections()
- public void getDefaultConnectionName()
- public void getDefaultManagerName()
- public void getManager()
- public void getManagerForClass()
- public void getManagerNames()
- public void getManagers()
- public void getRepository()
- public void resetManager()
Hierarchy
Extends
Implements
Members
protected
Methods
public
- __construct() — Construct.
- getAliasNamespace() — Resolves a registered namespace alias to the full namespace.
- getDefaultEntityManagerName() — Gets the default entity manager name.
- getEntityManager() — Gets a named entity manager.
- getEntityManagerForClass() — Gets the entity manager associated with a given class.
- getEntityManagerNames() — Gets all connection names.
- getEntityManagers() — Gets an array of all registered entity managers
- getEntityNamespace() — Resolves a registered namespace alias to the full namespace.
- resetEntityManager() — Resets a named entity manager.
Inherited from Symfony\Bridge\Doctrine\ManagerRegistry
protected
public
Inherited from Doctrine\Common\Persistence\AbstractManagerRegistry
protected
- getService() — Fetches/creates the given services
- resetService() — Resets the given services
public
- getConnection() — {@inheritdoc}
- getConnectionNames() — {@inheritdoc}
- getConnections() — {@inheritdoc}
- getDefaultConnectionName() — {@inheritdoc}
- getDefaultManagerName() — {@inheritdoc}
- getManager() — {@inheritdoc}
- getManagerForClass() — {@inheritdoc}
- getManagerNames() — {@inheritdoc}
- getManagers() — {@inheritdoc}
- getName() — Get the name of the registry
- getRepository() — {@inheritdoc}
- resetManager() — {@inheritdoc}