Skip to content

ReplayDoctrineDatabase

DoctrineDatabase, with DoctrineRecordingMiddleware installed on every DBAL connection it builds.

Registered under the doctrine driver alias by ReplayDoctrinePlugin in place of the plain DoctrineDatabase quioteframework/db-doctrine’s own DoctrinePlugin registers.

buildOrmConfiguration() is the seam DoctrineDatabase already exposes for exactly this: DBAL only accepts a Configuration’s middlewares at DriverManager::getConnection($params, $config) time (inside the inherited connect()), so they cannot be added after the fact once a Doctrine\ORM\EntityManager/Doctrine\DBAL\Connection already exists.

final class ReplayDoctrineDatabase extends DoctrineDatabase

ExtendsDoctrineDatabase
SourceReplayDoctrineDatabase.php

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
appendParameter()ParameterHolderAppend a parameter.
appendParameterByRef()ParameterHolderAppend a parameter by reference.
clearParameters()ParameterHolderClear all parameters associated with this request.
getConnection()DatabaseRetrieve the database connection associated with this Database implementation.
getDatabaseManager()DatabaseRetrieve the Database Manager instance for this implementation.
getDbalConnection()DoctrineDatabaseReturns the DBAL connection the entity manager runs on.
getEntityManager()DoctrineDatabaseReturns the Doctrine entity manager, connecting on first use.
getFlatParameterNames()ParameterHolderRetrieve an array of flattened parameter names.
getName()DatabaseRetrieve the name of this database connection.
getParameter()ParameterHolderRetrieve a parameter.
getParameterNames()ParameterHolderRetrieve an array of parameter names.
getParameters()ParameterHolderRetrieve an array of parameters.
getPdo()DoctrineDatabaseOnly available when the configured driver is a pdo_* one (pdo_mysql, pdo_pgsql, pdo_sqlite, …) — DBAL 4 also supports native drivers (mysqli, pgsql) that never construct a \PDO instance at all.
getRepository()DoctrineDatabase
getResource()DatabaseRetrieve a raw database resource associated with this Database implementation.
hasParameter()ParameterHolderIndicates whether or not a parameter exists.
initialize()DatabaseInitialize this Database.
ping()DoctrineDatabaseProbes the connection with SELECT 1 over DBAL.
removeParameter()ParameterHolderRemove a parameter.
reset()DoctrineDatabaseReturns this database to its pre-initialize() state, detaching every managed entity first.
setParameter()ParameterHolderSet a parameter.
setParameterByRef()ParameterHolderSet a parameter by reference.
setParameters()ParameterHolderSet an array of parameters.
setParametersByRef()ParameterHolderSet an array of parameters by reference.
shutdown()DoctrineDatabaseRolls back any open transaction, closes the DBAL connection and drops the entity manager.
startup()DatabaseDo any necessary startup work after initialization.