Doctrine yml格式唯一约束

Doctrine yml格式唯一约束,doctrine,yaml,innodb,schema.yml,Doctrine,Yaml,Innodb,Schema.yml,我想为我的yml方案添加一个候选密钥。yml有可能吗?我该怎么做?我在谷歌上找不到任何东西 编辑:这也可能与独特的约束?如果是这样的话,我试过了 uniqueConstraints: name_presId: columns: name, presentationId 致以最良好的祝愿, 给出了以下结构: --- EFImage: tableName: ef_images columns: presentation_id as presentationId: integer da

我想为我的yml方案添加一个候选密钥。yml有可能吗?我该怎么做?我在谷歌上找不到任何东西

编辑:这也可能与独特的约束?如果是这样的话,我试过了

uniqueConstraints:
  name_presId:
    columns:  name, presentationId
致以最良好的祝愿, 给出了以下结构:

---
EFImage:
tableName: ef_images
columns:
presentation_id as presentationId: integer
data: blob
name: string(255)
is_sendable as isSendable:
  type: integer(4)
  default: 0
use_for as useFor: 
  type: integer(4)
  default: 0
  relations:
ButtonBackgrounds:
  class: EFButton
  foreign: backgroundImageId
  local: id
  type: many
ImageViews:
  class: EFImageView
  foreign: imageId
  local: id
  type: many
Videos:
  class: EFVideo
  foreign: previewImageId
  local: id
  type: many
Presentation:
  class: EFPresentation
  local: presentationId
  foreign: id
  type: one
options:
type: InnoDB