Property | Type | Description | |
---|---|---|---|
$query | Current recorded query | ||
$start | For timing queries: |
Property | Type | Description | |
---|---|---|---|
$connection | Doctrine\DBAL\Connection | Doctrine connection | |
$enm | Doctrine entity manager | ||
$queries | Internal array where queries are stored |
Method | Description | |
---|---|---|
__construct ( |
||
registerQuery ( $query, $bindings, $time, $connection ) : array | Log the query into the internal store | |
resolve ( |
Adds ran database queries to the request | |
startQuery ( string $sql, array $params = null, array $types = null ) | From SQLLogger Doctrine Interface | |
stopQuery ( ) | From SQLLogger Doctrine Interface |
Method | Description | |
---|---|---|
convertParam ( $param ) | ||
formatQuery ( $sql ) | ||
getDatabaseQueries ( ) | Returns an array of runnable queries and their durations from the internal array | |
replaceParams ( $sql, $params ) |
public __construct ( |
||
$enm |
protected getDatabaseQueries ( ) |
public registerQuery ( $query, $bindings, $time, $connection ) : array | ||
return | array |
public resolve ( |
||
$request |
protected Connection,Doctrine\DBAL $connection | ||
return | Doctrine\DBAL\Connection |