Statistics
639
0
0
1.1y
Badges

DoctrineSql Panel for Tracy

Add Sql requests made by Doctrine in the Tracy debugger bar.

Installation

Composer

composer require macfja/tracy-doctrine-sql

Usage

Somewhere, when your application start and you initialize Doctrine

use MacFJA\Tracy\DoctrineSql;
use Doctrine\ORM\EntityManager;

// ...

$entityManager = EntityManager::create($conn, $config);
DoctrineSql::init($entityManager);

Multiple Manager support

use MacFJA\Tracy\DoctrineSql;
use Doctrine\ORM\EntityManager;

// ...

$blogManager = EntityManager::create($conn1, $config2);
$configManager = EntityManager::create($conn2, $config2);
DoctrineSql::init($blogManager, 'Blog');
DoctrineSql::init($configManager, 'Config');

Similar projects

No release at this moment. Try to create first one.

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com