laravel-doctrine / orm

A drop-in Doctrine ORM 2 implementation for Laravel 5+ and Lumen
http://laraveldoctrine.org
MIT License
827 stars 180 forks source link

getProxyDefinition(): Failed opening required '/tmp/__CG__AppTeam.php' #32

Closed MECU closed 9 years ago

MECU commented 9 years ago

Error: Doctrine\Common\Proxy\AbstractProxyFactory::getProxyDefinition(): Failed opening required '/tmp/__CG__AppTeam.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/bin')

It sounded like a permissions problem (but on /tmp?), and this StackOverflow slightly agrees. I even generated the proxies manually as the SO suggests, but I still get this error.

Even worse, my app properly generated into /home/../storage/proxies, but this page says it's looking into /tmp.

I did clear my cache with artisan and composer and have no outstanding composer updates.

I'm not sure if all the changes in the 1.0.0 may fix this problem. I don't have an easy way to test that.

patrickbrouwers commented 9 years ago

Hey!

I assume you were using dev-master. This problem was something I've fixed in dev-develop. However I decided to merge develop into master, so people won't run into these problems anymore when testing the package.

Let me know if it's fixed after a composer update. (Note don't forget to update doctrine.php config to the new version)

MECU commented 9 years ago

That fixed it. I upgraded to ~1.0 and it installed 1.0.x-dev.

bskimball commented 8 years ago

I have this same issue when using an ArrayCollection, I however have 'auto-generate' set to false. I am running version 1.0.13. Changing 'auto-generate' to true seems to fix the issue.

patrickbrouwers commented 8 years ago

If in the future anybody encounters this problem: