프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |