doctrine:schema:update --force 不起作用是 APC 吗?

doctrine:schema:update --force does not work is it APC?

我创建了 2 个新实体,当 运行 命令 'php app/console doctrine:schema:update --dump-sql' 时,我收到消息 'Nothing to update - your database is already in sync with the current entity metadata.'

我已经尝试清除缓存,并删除 orm 的 doctrine 文件夹中的内容,这是该论坛上的一些建议。还是没有喜悦。我在我的配置中使用 APC 缓存设置如下。

# Doctrine Configuration
doctrine:
 dbal:
    driver:   "%database_driver%"
    host:     "%database_host%"
    port:     "%database_port%"
    dbname:   "%database_name%"
    user:     "%database_user%"
    password: "%database_password%"
    charset:  UTF8



orm:
    auto_generate_proxy_classes: "%kernel.debug%"
    auto_mapping: true
    metadata_cache_driver: apc
    result_cache_driver: apc
    query_cache_driver: apc

可能这听起来很愚蠢,但我不能发表评论所以我会在这里说, 我们能看到至少一个你们的实体吗?可能是你有错误的注释。
就像忘记写

/** * @ORM\Table() * @ORM\Entity */

我个人使用

php app/console generate:doctrine:entity

确保包含所有基本注释