Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Many to Many relationships #44

Open
emericspiroux opened this issue Aug 3, 2016 · 0 comments
Open

Many to Many relationships #44

emericspiroux opened this issue Aug 3, 2016 · 0 comments

Comments

@emericspiroux
Copy link

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 !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant