1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/manual/codes/Database operations - Query logging.php
2006-07-23 21:08:06 +00:00

16 lines
284 B
PHP

<?php
// works only if you use doctrine database handler
$dbh = $session->getDBH();
$times = $dbh->getExecTimes();
// print all executed queries and their execution times
foreach($dbh->getQueries() as $index => $query) {
print $query." ".$times[$index];
}
?>