You are here

public function ConnectionRegistry::getConnection in Plug 7

Gets the named connection.

Parameters

string $name The connection name (null for the default one).:

Return value

object

1 method overrides ConnectionRegistry::getConnection()
AbstractManagerRegistry::getConnection in lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
Gets the named connection.

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ConnectionRegistry.php, line 47

Class

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

Namespace

Doctrine\Common\Persistence

Code

public function getConnection($name = null);