PHP Класс Kdyby\Doctrine\Registry

Автор: Filip Procházka ([email protected])
Наследование: extends Doctrine\Common\Persistence\AbstractManagerRegistry
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $connections, array $managers, $defaultConnection, $defaultManager, Container $serviceLocator )
getAliasNamespace ( string $alias ) : string Resolves a registered namespace alias to the full namespace.

Защищенные методы

Метод Описание
getService ( string $name ) : object Fetches/creates the given services.
resetService ( string $name ) : void Resets the given services.

Описание методов

__construct() публичный Метод

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

getAliasNamespace() публичный Метод

This method looks for the alias in all registered entity managers.
См. также: Doctrine\ORM\Configuration::getEntityNamespace
public getAliasNamespace ( string $alias ) : string
$alias string The alias
Результат string The full namespace

getService() защищенный Метод

A service in this context is connection or a manager instance.
protected getService ( string $name ) : object
$name string The name of the service.
Результат object The instance of the given service.

resetService() защищенный Метод

A service in this context is connection or a manager instance.
protected resetService ( string $name ) : void
$name string The name of the service.
Результат void