mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-499: Proxies cache fails on file_put_contents #622
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 (Apr 7, 2010).
Jira issue originally created by user ssurowiec:
I'm running Doctrine2 with Symfony2 and keep getting the below error if I wipe the cache directory.
Warning: file_put_contents(/home/[snip]/cache/prod/doctrine/Proxies/BundleApiBundleEntitiesEventProxy.php) [function.file-put-contents]: failed to open stream: No such file or directory in /home/[snip]/vendor/doctrine/lib/Doctrine/ORM/Proxy/ProxyFactory.php line 149
From what I can tell the problem is that Doctrine never checks to make sure the proxy directory actually exists before attempting to write the files to it.