搜索

首页  >  问答  >  正文

symfony - 有没有doctrine yaml定义数据库shema的比较详尽的文档?

比如symfony2中的例子:

Ens\JobeetBundle\Entity\CategoryAffiliate:
  type: entity
  table: category_affiliate
  id:
    id:
      type: integer
      generator: { strategy: AUTO }
  manyToOne:
    category:
      targetEntity: Category
      inversedBy: category_affiliates
      joinColumn:
        name: category_id
        referencedColumnName: id
    affiliate:
      targetEntity: Affiliate
      inversedBy: category_affiliates
      joinColumn:
        name: affiliate_id
        referencedColumnName: id

比较详尽的解释如generator这个option,以及manyToOne和OneToMany的option的文档
doctrine官网我找到的并不太清楚

伊谢尔伦伊谢尔伦2827 天前602

全部回复(1)我来回复

  • 给我你的怀抱

    给我你的怀抱2017-05-16 16:47:27

    http://docs.doctrine-project.org/en/l...

    回复
    0
  • 取消回复