class Configuration (View source)

Configuration container for the Doctrine DBAL.

Properties

protected mixed[] $_attributes The attributes that are contained in the configuration.

Methods

setSQLLogger(SQLLogger|null $logger)

Sets the SQL logger to use.

getSQLLogger()

Gets the SQL logger that is used.

Cache|null
getResultCacheImpl()

Gets the cache driver implementation that is used for query result caching.

void
setResultCacheImpl(Cache $cacheImpl)

Sets the cache driver implementation that is used for query result caching.

void
setFilterSchemaAssetsExpression(string $filterExpression) deprecated

Sets the filter schema assets expression.

string|null
getFilterSchemaAssetsExpression() deprecated

Returns filter schema assets expression.

setSchemaAssetsFilter(callable|null $callable = null)

Sets the callable to use to filter schema assets.

getSchemaAssetsFilter()

Returns the callable to use to filter schema assets.

setAutoCommit(bool $autoCommit)

Sets the default auto-commit mode for connections.

bool
getAutoCommit()

Returns the default auto-commit mode for connections.

Details

setSQLLogger(SQLLogger|null $logger)

Sets the SQL logger to use.

Parameters

SQLLogger|null $logger

getSQLLogger()

Gets the SQL logger that is used.

Cache|null getResultCacheImpl()

Gets the cache driver implementation that is used for query result caching.

Return Value

Cache|null

void setResultCacheImpl(Cache $cacheImpl)

Sets the cache driver implementation that is used for query result caching.

Parameters

Cache $cacheImpl

Return Value

void

void setFilterSchemaAssetsExpression(string $filterExpression) deprecated

deprecated Use Configuration::setSchemaAssetsFilter() instead

Sets the filter schema assets expression.

Only include tables/sequences matching the filter expression regexp in schema instances generated for the active connection when calling {AbstractSchemaManager#createSchema()}.

Parameters

string $filterExpression

Return Value

void

string|null getFilterSchemaAssetsExpression() deprecated

deprecated Use Configuration::getSchemaAssetsFilter() instead

Returns filter schema assets expression.

Return Value

string|null

setSchemaAssetsFilter(callable|null $callable = null)

Sets the callable to use to filter schema assets.

Parameters

callable|null $callable

getSchemaAssetsFilter()

Returns the callable to use to filter schema assets.

setAutoCommit(bool $autoCommit)

Sets the default auto-commit mode for connections.

If a connection is in auto-commit mode, then all its SQL statements will be executed and committed as individual transactions. Otherwise, its SQL statements are grouped into transactions that are terminated by a call to either the method commit or the method rollback. By default, new connections are in auto-commit mode.

Parameters

bool $autoCommit True to enable auto-commit mode; false to disable it.

See also

getAutoCommit

bool getAutoCommit()

Returns the default auto-commit mode for connections.

Return Value

bool True if auto-commit mode is enabled by default for connections, false otherwise.

See also

setAutoCommit