\DebugBar\BridgeDoctrineCollector

Collects Doctrine queries

http://doctrine-project.org

Uses the DebugStack logger to collects data about queries

$debugStack = new Doctrine\DBAL\Logging\DebugStack(); $entityManager->getConnection()->getConfiguration()->setSQLLogger($debugStack); $debugbar->addCollector(new DoctrineCollector($debugStack));

Summary

Methods
Properties
Constants
setDefaultDataFormatter()
getDefaultDataFormatter()
setDataFormatter()
getDataFormatter()
formatVar()
formatDuration()
formatBytes()
__construct()
collect()
getName()
getWidgets()
getAssets()
No public properties found
No constants found
No protected methods found
$dataFormater
$debugStack
N/A
No private methods found
$defaultDataFormatter
N/A

Properties

$dataFormater

$dataFormater : 

Type

$debugStack

$debugStack : 

Type

$defaultDataFormatter

$defaultDataFormatter : 

Type

Methods

setDefaultDataFormatter()

setDefaultDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) 

Sets the default data formater instance used by all collectors subclassing this class

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

setDataFormatter()

setDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) : $this

Sets the data formater instance used by this collector

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

Returns

$this

formatVar()

formatVar(  $var) 

Parameters

$var

formatDuration()

formatDuration(  $seconds) 

Parameters

$seconds

formatBytes()

formatBytes(  $size,   $precision = 2) 

Parameters

$size
$precision

__construct()

__construct(  $debugStackOrEntityManager) 

DoctrineCollector constructor.

Parameters

$debugStackOrEntityManager

Throws

\DebugBar\DebugBarException

collect()

collect() : array

Returns

array

getName()

getName() : string

Returns

string

getWidgets()

getWidgets() : array

Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}

Returns

array

getAssets()

getAssets() : array

Returns an array with the following keys: - base_path - base_url - css: an array of filenames - js: an array of filenames

Returns

array