cmyker / doctrine-sql-logger
Doctrine SQL query debugger with binded parameters
Installs: 29 402
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.2
- doctrine/dbal: ~2.2
This package is not auto-updated.
Last update: 2025-04-29 13:28:20 UTC
README
Debug Doctrine 2 real SQL queries with parameters
Installation
composer require cmyker/doctrine-sql-logger:dev-master
Usage example
$connection = $this->getEntityManager()->getConnection(); $logger = new \Cmyker\DoctrineSqlLogger\Logger($connection); $connection->getConfiguration()->setSQLLogger($logger); //some query here $monologLogger->debug($logger->lastQuery); //or see the output
TODO more details