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.
Synopsis
Section titled “Synopsis”final class ReplayDoctrineDatabase extends DoctrineDatabase
| Extends | DoctrineDatabase |
| Source | ReplayDoctrineDatabase.php |
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
appendParameter() | ParameterHolder | Append a parameter. |
appendParameterByRef() | ParameterHolder | Append a parameter by reference. |
clearParameters() | ParameterHolder | Clear all parameters associated with this request. |
getConnection() | Database | Retrieve the database connection associated with this Database implementation. |
getDatabaseManager() | Database | Retrieve the Database Manager instance for this implementation. |
getDbalConnection() | DoctrineDatabase | Returns the DBAL connection the entity manager runs on. |
getEntityManager() | DoctrineDatabase | Returns the Doctrine entity manager, connecting on first use. |
getFlatParameterNames() | ParameterHolder | Retrieve an array of flattened parameter names. |
getName() | Database | Retrieve the name of this database connection. |
getParameter() | ParameterHolder | Retrieve a parameter. |
getParameterNames() | ParameterHolder | Retrieve an array of parameter names. |
getParameters() | ParameterHolder | Retrieve an array of parameters. |
getPdo() | DoctrineDatabase | Only 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() | Database | Retrieve a raw database resource associated with this Database implementation. |
hasParameter() | ParameterHolder | Indicates whether or not a parameter exists. |
initialize() | Database | Initialize this Database. |
ping() | DoctrineDatabase | Probes the connection with SELECT 1 over DBAL. |
removeParameter() | ParameterHolder | Remove a parameter. |
reset() | DoctrineDatabase | Returns this database to its pre-initialize() state, detaching every managed entity first. |
setParameter() | ParameterHolder | Set a parameter. |
setParameterByRef() | ParameterHolder | Set a parameter by reference. |
setParameters() | ParameterHolder | Set an array of parameters. |
setParametersByRef() | ParameterHolder | Set an array of parameters by reference. |
shutdown() | DoctrineDatabase | Rolls back any open transaction, closes the DBAL connection and drops the entity manager. |
startup() | Database | Do any necessary startup work after initialization. |