I
I
Igor2019-09-18 13:07:39
symfony
Igor, 2019-09-18 13:07:39

Bug in Symfony in dev environment?

Colleagues, good afternoon!
Bug in Symfony in dev environment?

{
    "code": 1,
    "msg": "Warning: rename(/www/var/cache/api/dev/doctrine/orm/Proxies/__CG__AppEntityDatabaseRegion.php.5d8200e1493d78.15915865,/www/var/cache/api/dev/doctrine/orm/Proxies/__CG__AppEntityDatabaseRegion.php): No such file or directory",
    "level": "error"
}

Tried cleaning, warming up, creating proxies.
The problem remains.
There are no problems in the prod environment.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nujabes37, 2019-09-18
@IgorPI

In this class, if you use Doctrine PHP
https://www.doctrine-project.org/projects/doctrine...
Write the absolute path to the cache folder
If the configuration is via yml, then try this

doctrine:
    orm:
        proxy_dir: 'var/www/html/doctrine_proxy/'

UPD:
Yes, it really is a crutch. Work, then return it as it was and adjust your configuration correctly ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question