我在教条缓存方面遇到了很大麻烦。上下文:
缓存清除(使用doctrine命令)
rm -fr var / cache / prod / rm -fr var / cache / dev / rm -fr var / cache / de *
php bin / console doctrine:cache:clear-metadata --env = prod php bin / console doctrine:cache:clear-query --env = prod php bin / console doctrine:cache:clear-result --env = prod
在这一系列命令之后,......我正在尝试更新架构。如您所见doctrine:schema:update
表示已执行查询。但事实是,信息总是一样的。另外,......我可以说实体实体注释已经改变了......
这
/**
* @ORM\Table(name="u_i_options")
* @ORM\Entity(repositoryClass="AppBundle\Repository\UIOptionsRepository")
* @JMS\ExclusionPolicy("all")
*/
到
/**
* @ORM\Table(name="uioptions")
* @ORM\Entity(repositoryClass="AppBundle\Repository\UIOptionsRepository")
* @JMS\ExclusionPolicy("all")
*/
所以,......架构明确地改变了。
forge@foo:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning: Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed
forge@foo:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning: Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed
forge@mt-test:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning: Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed
forge@foo:~/api-test.example.com$ php ./bin/console doctrine:schema:update --env=prod --force
PHP Warning: Module 'newrelic' already loaded in Unknown on line 0
Updating database schema...
Database schema updated successfully! "6" queries were executed
同样重启php服务问题仍然存在:此命令序列不会更新架构。
我还禁用了所有教条的缓存配置。