search

Home  >  Q&A  >  body text

symfony - Is there any more detailed documentation on doctrine yaml defining database schema?

For example, the example in 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

A more detailed explanation such as the generator option, and the documentation for manyToOne and OneToMany options
I am not very clear about the doctrine official website

伊谢尔伦伊谢尔伦2747 days ago553

reply all(1)I'll reply

  • 给我你的怀抱

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

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

    reply
    0
  • Cancelreply