BazingaFakerBundle icon indicating copy to clipboard operation
BazingaFakerBundle copied to clipboard

Many to Many relationships

Open emericspiroux opened this issue 8 years ago • 0 comments

Hi, I need to make faker result in my jointure table product_category but it's not an entity, it's just a relation :

manyToMany:
   categories:
      targetEntity: Category
      inversedBy: products
      joinTable:
        name: product_category
        joinColumns:
          product_id:
            referencedColumnName: id
        inverseJoinColumns:
          category_id:
            referencedColumnName: id
            unique: true

how can i do with yaml to fill my jointure table ?

thx a lot !

emericspiroux avatar Aug 03 '16 02:08 emericspiroux