Propel 2 API
Class

Propel\Runtime\Connection\ConnectionManagerSingle

class ConnectionManagerSingle implements ConnectionManagerInterface

Manager for single connection to a datasource.

Methods

setName(string $name)

string getName()

getConfiguration()

setConnection(ConnectionInterface $connection)

setConfiguration($configuration)

ConnectionInterface getWriteConnection(AdapterInterface $adapter = null)

ConnectionInterface getReadConnection(AdapterInterface $adapter = null)

closeConnections()

Details

at line 39
public setName(string $name)

Parameters

string $name The datasource name associated to this connection

at line 47
public string getName()

Return Value

string The datasource name associated to this connection

at line 52
public getConfiguration()

at line 57
public setConnection(ConnectionInterface $connection)

Parameters

ConnectionInterface $connection

at line 63
public setConfiguration($configuration)

Parameters

$configuration

at line 74
public ConnectionInterface getWriteConnection(AdapterInterface $adapter = null)

Parameters

AdapterInterface $adapter

Return Value

ConnectionInterface

at line 89
public ConnectionInterface getReadConnection(AdapterInterface $adapter = null)

Parameters

AdapterInterface $adapter

Return Value

ConnectionInterface

at line 94
public closeConnections()