Doctrine\Common\Persistence\ManagerRegistry
Contract covering object managers for a Doctrine persistence layer ManagerRegistry class to implement.
- Author: Fabien Potencier <fabien@symfony.com>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
interface ManagerRegistry
extends ConnectionRegistry
{
- // methods
- public string getDefaultManagerName()
- public ObjectManager getManager()
- public array getManagers()
- public ObjectManager resetManager()
- public string getAliasNamespace()
- public array getManagerNames()
- public ObjectRepository getRepository()
- public ObjectManager|null getManagerForClass()
- // Inherited methods from ConnectionRegistry
- public string getDefaultConnectionName()
- public getConnection()
- public array getConnections()
- public array getConnectionNames()
Hierarchy
Extends
Extended by
Implemented by
Methods
public
- getAliasNamespace() — Resolves a registered namespace alias to the full namespace.
- getDefaultManagerName() — Gets the default object manager name.
- getManager() — Gets a named object manager.
- getManagerForClass() — Gets the object manager associated with a given class.
- getManagerNames() — Gets all connection names.
- getManagers() — Gets an array of all registered object managers
- getRepository() — Gets the ObjectRepository for an persistent object.
- resetManager() — Resets a named object manager.
Inherited from Doctrine\Common\Persistence\ConnectionRegistry
public
- getConnection() — Gets the named connection.
- getConnectionNames() — Gets all connection names.
- getConnections() — Gets an array of all registered connections
- getDefaultConnectionName() — Gets the default connection name.