Symfony1 如何在symfony中指定空外键

Symfony1 如何在symfony中指定空外键,symfony1,null,fixtures,Symfony1,Null,Fixtures,以下是一个条令模式: 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

以下是一个条令模式:

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\u ABCD
它将毫无问题地加载

完全忽略外键行有效:

Device:
  Device_1:
    name: 'My device'