1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-05-04 13:57:55 +02:00

Demo namespace for Product class in doctrine demo (fixed #138)

This commit is contained in:
maximebf 2014-07-26 15:01:45 +02:00
parent b32fd42afd
commit 392b52bf5f
2 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ $debugStack = new Doctrine\DBAL\Logging\DebugStack();
$entityManager->getConnection()->getConfiguration()->setSQLLogger($debugStack);
$debugbar->addCollector(new DebugBar\Bridge\DoctrineCollector($debugStack));
$product = new Product();
$product = new Demo\Product();
$product->setName("foobar");
$entityManager->persist($product);

View File

@ -1,5 +1,7 @@
<?php
namespace Demo;
/**
* @Entity @Table(name="products")
**/