Top "Many-to-many" questions

A type of relationship between entities of types A and B which associates a list of entities of type B to an entity of type A and vice versa.

How to build many-to-many relations using SQLAlchemy: a good example

I have read the SQLAlchemy documentation and tutorial about building many-to-many relation but I could not figure out how to …

python many-to-many sqlalchemy associations
Django 1.8 - Intermediary Many-to-Many-Through Relationship - What is the consequence of where 'ManytoManyField' is used?

An example Many-to-Many through relationship in Django: class First(models.Model): seconds = models.ManyToManyField(Second, through='Middle') class Middle(models.…

django many-to-many relationship django-orm m2m
django 1.4 Many-to-Many bulk add

I was wondering if there is the equivalent of a "add all" or "bulk create" for many to many relationships …

django many-to-many
Hibernate @ManyToMany joinTable - OrderBy using join table's field

There are 3 tables: TABLE_A ID_A field1 fieldN TABLE_B ID_B field1 fieldN TABLE_A_B ID_A …

hibernate many-to-many jointable joincolumn
Remove relationship between Eloquent records

I've created two classes extending Eloquent (contacts and tags), they have a ManyToMany relationship. I'm trying to create the method …

laravel-5 eloquent many-to-many laravel-5.1 detach
Many to many relationships in JSON

Consider this scenario: You want to send some data to the client in JSON format, and you don't want to …

json many-to-many client-side
Prevent duplicate entries in a join table in a many-to-many relationship in JPA

I'm using EclipseLink 2.5.1 (and Hibernate 4.3.5 final). Given the following tables in MySQL. product prod_colour (join table) colour There is …

hibernate jpa many-to-many eclipselink jpa-2.1
Doctrine Query Builder Where Count of ManyToMany is greater than

Im using the Doctrine Query Builder, and have a very specific requirement that came through. I am using the ManyToMany …

symfony doctrine-orm doctrine many-to-many doctrine-query
Array Collection, symfony: add a relation

I'm new of Symfony and php, and I'm trying to understand, without outcome, the array collection. Now I have two …

php symfony many-to-many arraycollection
Doctrine 2.1 DQL - Many-to-many query multiple values - Item in multiple categories?

This may seem like a rudimentary request, but I can't seem to get it to work, so I'm either missing …

sql doctrine many-to-many dql