【发布时间】:2011-10-04 14:05:36
【问题描述】:
我将 Codeigniter 与 Doctrine 2 与 CodeIgniter2 一起使用。 我使用 YAML Schema 文件来定义数据库模式。 我想用 MySQL 数据类型 Double 在我的表中定义两列。 下面是我试过的 YAML 映射
Entities\Location:
type: entity
table: locations
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
Name:
type: string
length: 40
nullable: false
longitude:
type: double
latitude:
type: double
但是当我尝试从 YAML 创建模型时,代码会抛出错误。
实体已成功创建。
错误消息是:
类双不存在在尝试创建代理时
和
在尝试创建架构时请求了未知的列类型双重
【问题讨论】:
标签: php double yaml doctrine-orm