【发布时间】:2011-04-20 00:10:10
【问题描述】:
这是一个 Doctrine 架构:
Device:
columns:
name: { type: string(60), }
os_version_id: { type: int(11), notnull: false }
relations:
OsVersion:
foreignAlias: Devices
OsVersion:
columns:
version: { type: string(60), fixed: false, notnull: true }
这是一个固定装置:
OSV_ABCD:
version: ABCD
OSV_DEFG:
version: DEFG
Device:
Device_1:
name: 'My device'
OsVersion: null
当加载这个夹具时,我得到这个:
Invalid row key specified: (os_version) , referred to in (device) Device_1
如果我将OsVersion: null 更改为OsVersion: OSV_ABCD,它会毫无问题地加载。
【问题讨论】: