Skip to content

Commit 392b52b

Browse files
committed
Demo namespace for Product class in doctrine demo (fixed php-debugbar#138)
1 parent b32fd42 commit 392b52b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

demo/bridge/doctrine/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$entityManager->getConnection()->getConfiguration()->setSQLLogger($debugStack);
1010
$debugbar->addCollector(new DebugBar\Bridge\DoctrineCollector($debugStack));
1111

12-
$product = new Product();
12+
$product = new Demo\Product();
1313
$product->setName("foobar");
1414

1515
$entityManager->persist($product);

demo/bridge/doctrine/src/Product.php renamed to demo/bridge/doctrine/src/Demo/Product.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Demo;
4+
35
/**
46
* @Entity @Table(name="products")
57
**/

0 commit comments

Comments
 (0)