【发布时间】:2014-01-21 16:41:24
【问题描述】:
我想让教义只使用实体类中存在的注释(不是 YAML)。
当我执行:php app/console doctrine:schema:update 时,我收到错误消息:
Invalid mapping file 'TEST.Bundle.BlogBundle.Entity.Image.orm.yml' for clas
s 'TEST\Bundle\BlogBundle\Entity\Image'.
文件TEST.Bundle.BlogBundle.Entity.Image.orm.yml 为空。此错误背后的原因可能是什么?
我如何告诉学说考虑注释指定的元数据?
非常感谢。
【问题讨论】:
-
您使用的是哪个版本的 PHP?
标签: php symfony doctrine-orm annotations doctrine