Я пытаюсь создать объект с помощью 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
Я создал файл с именем Entities.UserTestDelete.dcm.yml в FooBundle/Resources/config/doctrine/metadata/orm.
Содержимое файла:
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
И тут я получил ошибку. Любая идея, почему это может быть проблемой?