【发布时间】:2014-06-30 13:43:21
【问题描述】:
我正在尝试使用 yml 创建实体,但出现以下错误:
[ErrorException]
Warning: class_parents(): Class Ambience does not exist and could not be loaded in C:\wamp\www\demo\vendor\gedmo-doctrine-extensions\lib\Gedmo\Mapping\ExtensionMetadataFactory.php line 80
我在 FooBundle/Resources/config/doctrine/metadata/orm 中创建了一个名为 Entities.UserTestDelete.dcm.yml 的文件
文件内容:
Entities\UserTestDelete:
type: entity
table: users
id:
id:
type: integer
generator:
strategy: AUTO
fields:
name:
type: string
length: 50
然后我执行了以下命令:
php app/console doctrine:mapping:import "DemoFooBundle" yml
然后我得到了错误。知道为什么会有问题吗?
【问题讨论】:
标签: php symfony doctrine-orm