Свойство | Тип | Описание | |
---|---|---|---|
$connections | Doctrine\DBAL\Connection[] | ||
$defaultConnection | Doctrine\DBAL\Connection | ||
$previousConnections | Doctrine\DBAL\Connection[] |
Метод | Описание | |
---|---|---|
__destruct ( ) | Close all connections on | |
add ( array | Doctrine\DBAL\Connection | string $connection, string $name = self::DEFAULT_CONNECTION ) | Add a new connection to internal cache. Create connection with Blast\Orm\ConnectionManager::create | |
all ( ) : Doctrine\DBAL\Connection[] | |
Get all connections | |
closeAll ( ) | Disconnect all connections and remove all connections. Collect garbage at least. | |
create ( $definition ) : Doctrine\DBAL\Connection | |
Create a new connection from definition. | |
get ( $name = null ) : Doctrine\DBAL\Connection | |
Get connection by name. | |
getInstance ( ) : |
Get connection manager instance to share connections between different instances. | |
getPrevious ( ) : array | ||
has ( $name ) : boolean | Check if connections exists | |
swapActiveConnection ( string $name ) | Swap current connection with another connection by name and add previous connection to previous connection stack. |
public all ( ) : Doctrine\DBAL\Connection[] | |
||
Результат | Doctrine\DBAL\Connection[] | |
public closeAll ( ) |
public static create ( $definition ) : Doctrine\DBAL\Connection | |
||
$definition | ||
Результат | Doctrine\DBAL\Connection | |
public get ( $name = null ) : Doctrine\DBAL\Connection | |
||
$name | ||
Результат | Doctrine\DBAL\Connection | |
public static getInstance ( ) : |
||
Результат |
public swapActiveConnection ( string $name ) | ||
$name | string |
protected Connection[],Doctrine\DBAL $connections | ||
Результат | Doctrine\DBAL\Connection[] |
protected Connection,Doctrine\DBAL $defaultConnection | ||
Результат | Doctrine\DBAL\Connection |