数据库架构更新成功! " 6"查询已执行但不是真的

时间:2017-05-19 08:51:59

标签: php symfony caching doctrine-orm doctrine

我在教条缓存方面遇到了很大麻烦。上下文:

  • 架构已更新(具有新表名称的实体)
  • 缓存已删除(最终手动删除)
  • 缓存清除(使用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服务问题仍然存在:此命令序列不会更新架构。

我还禁用了所有教条的缓存配置。

0 个答案:

没有答案