mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1246: $em-find or $em->getRepository('Entities\Product')->findBy not working #1568
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jul 3, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jijioc:
insert into shipping and product
==>prints
and the execution get stuck here.
If the shipping is added manually to the persistent context it seems it's working fine...
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by @beberlei:
Formatting
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by @beberlei:
I dont understand what the bug should be here. It looks completly correct to me.
In your case 1, cant you just access Product::$shipping?
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by jijioc:
the bug consists in the fact that when using,
$product = $em->find('Entities\Product', 1);
the execution of the index.php script stops.
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by @beberlei:
Can you show the error message that is generated? I cant really reproduce this issue with this little information.
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by jijioc:
I'm using the EchoSQLLogger so the only thing that is logged is
SELECT t0.id AS id1, t0.shipping_id AS shipping_id2 FROM product t0 WHERE t0.id = ?
array(1) { [0]=> int(1) } array(1) { [0]=> int(1) }
no explicit error
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by @beberlei:
Have you turned display errors off maybe? Or does your framework (if used) eat an exception that is thrown?
Can you install xdebug pecl extension and do an xdebug_start_trace() before that $em->find() call? That would help pinning the issue down.
@doctrinebot commented on GitHub (Jul 3, 2011):
Comment created by jijioc:
The problem was:
[03-Jul-2011 12:30:20] PHP Fatal error: require() [function.require]: Failed opening required
'D:\Program Files\Zend\Apache2\htdocs\hr/Proxies\EntitiesShippingProxy.php'
(include_path='.;D:\Program Files\Zend\ZendServer\share\ZendFramework\library')
in D:\Program Files\Zend\Apache2\htdocs\hr\Doctrine\ORM\Proxy\ProxyFactory.php on line 85
so after I created the directory Proxies everyting is running fine
Thanks. you can close the bug... sorry
@doctrinebot commented on GitHub (Jul 3, 2011):
Issue was closed with resolution "Invalid"