【发布时间】:2013-03-17 15:08:35
【问题描述】:
我正在使用带有 codeIgniter 的 Doctrine2,我创建了一些 yml 格式的模型。使用命令行我创建了代理和实体。当我尝试创建数据库表时,出现以下错误:
[Doctrine\ORM\Mapping\MappingException]
类的映射文件“Entities.category.dcm.yml”无效 '实体\类别'。
这里是Entities.category.dcm.yml:
Entities\Category:
type: entity
table: categories
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
name:
type: string
length: 50
nullable: false
description:
type: string
length: 255
【问题讨论】:
标签: codeigniter doctrine-orm entities