Documentation

ConnectionRegistry

Contract covering connection for a Doctrine persistence layer ManagerRegistry class to implement.

Tags
link
www.doctrine-project.org
since
2.2
author

Fabien Potencier fabien@symfony.com

author

Benjamin Eberlei kontakt@beberlei.de

author

Lukas Kahwe Smith smith@pooteeweet.org

Table of Contents

getConnection()  : object
Gets the named connection.
getConnectionNames()  : array<string|int, mixed>
Gets all connection names.
getConnections()  : array<string|int, mixed>
Gets an array of all registered connections.
getDefaultConnectionName()  : string
Gets the default connection name.

Methods

getConnection()

Gets the named connection.

public getConnection([string $name = null ]) : object
Parameters
$name : string = null

The connection name (null for the default one).

Return values
object

getConnectionNames()

Gets all connection names.

public getConnectionNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of connection names.

getConnections()

Gets an array of all registered connections.

public getConnections() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of Connection instances.

getDefaultConnectionName()

Gets the default connection name.

public getDefaultConnectionName() : string
Return values
string

The default connection name.

Search results