Documentation

Configuration
in package

Configuration container for the Doctrine DBAL.

Table of Contents

Properties

$autoCommit  : bool
The default auto-commit mode for connections.
$resultCacheImpl  : Cache|null
The cache driver implementation that is used for query result caching.
$schemaAssetsFilter  : callable|null
The callable to use to filter schema assets.
$sqlLogger  : SQLLogger|null
The SQL logger in use. If null, SQL logging is disabled.
$middlewares  : array<string|int, Middleware>
$resultCache  : CacheItemPoolInterface|null
The cache driver implementation that is used for query result caching.
$schemaManagerFactory  : SchemaManagerFactory|null

Methods

__construct()  : mixed
getAutoCommit()  : bool
Returns the default auto-commit mode for connections.
getMiddlewares()  : array<string|int, Middleware>
getResultCache()  : CacheItemPoolInterface|null
Gets the cache driver implementation that is used for query result caching.
getResultCacheImpl()  : Cache|null
Gets the cache driver implementation that is used for query result caching.
getSchemaAssetsFilter()  : callable|null
Returns the callable to use to filter schema assets.
getSchemaManagerFactory()  : SchemaManagerFactory|null
getSQLLogger()  : SQLLogger|null
Gets the SQL logger that is used.
setAutoCommit()  : void
Sets the default auto-commit mode for connections.
setMiddlewares()  : $this
setResultCache()  : void
Sets the cache driver implementation that is used for query result caching.
setResultCacheImpl()  : void
Sets the cache driver implementation that is used for query result caching.
setSchemaAssetsFilter()  : void
Sets the callable to use to filter schema assets.
setSchemaManagerFactory()  : $this
setSQLLogger()  : void
Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.

Properties

$autoCommit

The default auto-commit mode for connections.

protected bool $autoCommit = true

$resultCacheImpl

The cache driver implementation that is used for query result caching.

protected Cache|null $resultCacheImpl
Tags
deprecated

Use $resultCache instead.

$schemaAssetsFilter

The callable to use to filter schema assets.

protected callable|null $schemaAssetsFilter

Methods

getAutoCommit()

Returns the default auto-commit mode for connections.

public getAutoCommit() : bool
Tags
see
setAutoCommit
Return values
bool

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

getResultCacheImpl()

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

public getResultCacheImpl() : Cache|null
Tags
deprecated

Use getResultCache() instead.

Return values
Cache|null

getSchemaAssetsFilter()

Returns the callable to use to filter schema assets.

public getSchemaAssetsFilter() : callable|null
Return values
callable|null

setAutoCommit()

Sets the default auto-commit mode for connections.

public setAutoCommit(bool $autoCommit) : void

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
$autoCommit : bool

True to enable auto-commit mode; false to disable it

Tags
see
getAutoCommit

setMiddlewares()

public setMiddlewares(array<string|int, Middleware$middlewares) : $this
Parameters
$middlewares : array<string|int, Middleware>
Return values
$this

setResultCacheImpl()

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

public setResultCacheImpl(Cache $cacheImpl) : void
Parameters
$cacheImpl : Cache
Tags
deprecated

Use setResultCache() instead.

setSchemaAssetsFilter()

Sets the callable to use to filter schema assets.

public setSchemaAssetsFilter([callable|null $callable = null ]) : void
Parameters
$callable : callable|null = null

setSQLLogger()

Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.

public setSQLLogger([SQLLogger|null $logger = null ]) : void
Parameters
$logger : SQLLogger|null = null
Tags
deprecated

Use setMiddlewares() and Middleware instead.


        
On this page

Search results