PHP Interface Blast\Orm\ConnectionManagerInterface

Show file Open project: phpthinktank/blast-orm

Public Methods

Method Description
add ( array | Doctrine\DBAL\Connection | string $connection, $name ) Params a related to configuration
all ( ) : Doctrine\DBAL\Connection[]
get ( $name = null ) : Doctrine\DBAL\Connection
swapActiveConnection ( string $name ) Activate a connection as default connection

Method Details

add() public method

Params a related to configuration
See also: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#getting-a-connection
public add ( array | Doctrine\DBAL\Connection | string $connection, $name )
$connection array | Doctrine\DBAL\Connection | string
$name

all() public method

public all ( ) : Doctrine\DBAL\Connection[]
return Doctrine\DBAL\Connection[]

get() public method

public get ( $name = null ) : Doctrine\DBAL\Connection
$name
return Doctrine\DBAL\Connection

swapActiveConnection() public method

Activate a connection as default connection
public swapActiveConnection ( string $name )
$name string