Componette

Componette

MacFJA

MacFJA / tracy-doctrine-sql

A Tracy panel for Doctrine SQL queries

download-cloud-line composer require macfja/tracy-doctrine-sql

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.

Componette Componette felix@nette.org