PHP Class Kdyby\Doctrine\Registry

Author: Filip Procházka ([email protected])
Inheritance: extends Doctrine\Common\Persistence\AbstractManagerRegistry
Mostra file Open project: kdyby/doctrine Class Usage Examples

Public Methods

Method Description
__construct ( array $connections, array $managers, $defaultConnection, $defaultManager, Container $serviceLocator )
getAliasNamespace ( string $alias ) : string Resolves a registered namespace alias to the full namespace.

Protected Methods

Method Description
getService ( string $name ) : object Fetches/creates the given services.
resetService ( string $name ) : void Resets the given services.

Method Details

__construct() public method

public __construct ( array $connections, array $managers, $defaultConnection, $defaultManager, Container $serviceLocator )
$connections array
$managers array
$serviceLocator Nette\DI\Container

getAliasNamespace() public method

This method looks for the alias in all registered entity managers.
See also: Doctrine\ORM\Configuration::getEntityNamespace
public getAliasNamespace ( string $alias ) : string
$alias string The alias
return string The full namespace

getService() protected method

A service in this context is connection or a manager instance.
protected getService ( string $name ) : object
$name string The name of the service.
return object The instance of the given service.

resetService() protected method

A service in this context is connection or a manager instance.
protected resetService ( string $name ) : void
$name string The name of the service.
return void