setBaseUrl('../../../src/DebugBar/Resources'); $debugStack = new Doctrine\DBAL\Logging\DebugStack(); $entityManager->getConnection()->getConfiguration()->setSQLLogger($debugStack); $debugbar->addCollector(new DebugBar\Bridge\DoctrineCollector($debugStack)); $product = new Demo\Product(); $product->setName("foobar"); $product->setUpdated(); $entityManager->persist($product); $entityManager->flush(); $entityManager->createQuery("select p from Demo\\Product p where p.updated>:u")->setParameter("u", new \DateTime('1 hour ago'))->execute(); $entityManager->createQuery("select p from Demo\\Product p where p.name=:c")->setParameter("c", "")->execute(); render_demo_page();