1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-19 07:41:39 +02:00
Files
php-debugbar/demo/bridge/doctrine/index.php
2013-08-13 11:40:51 +10:00

18 lines
501 B
PHP

<?php
include __DIR__ . '/bootstrap.php';
include __DIR__ . '/../../bootstrap.php';
$debugbarRenderer->setBaseUrl('../../../src/DebugBar/Resources');
$debugStack = new Doctrine\DBAL\Logging\DebugStack();
$entityManager->getConnection()->getConfiguration()->setSQLLogger($debugStack);
$debugbar->addCollector(new DebugBar\Bridge\DoctrineCollector($debugStack));
$product = new Product();
$product->setName("foobar");
$entityManager->persist($product);
$entityManager->flush();
render_demo_page();