Top "Relationship" questions

Questions in this tag typically involve the association that a set of data has with other set(s) of data.

Doctrine2 One-To-Many, Self-referencing relationship

In my 'Topic' entity, I have a One-To-Many, Self-referencing relationship $parent:$children. class Topic { /** @ORM\Id * @Column(type="integer") * @ORM\…

symfony doctrine-orm one-to-many relationship self-reference
Entity Framework Core: Update relation with Id only without extra call

I'm trying to figure out how to deal with 'Single navigation property case' described in this doc: Let's say we …

c# orm asp.net-core relationship entity-framework-core
Structuring Relationships in Firebase

I've got two items in my Firebase: providers and services, and I'm trying to figure out the best way to …

firebase relationship denormalization
How do I show relationships in Enterprise Architect

I have used Enterprise Architect to create a simple class diagram. What I can't figure out how to do is …

uml case relationship diagram enterprise-architect
SQLAlchemy declarative many-to-many self-join via Association object

I have a table Users and a table Friends which maps users to other users as each user can have …

python sqlalchemy many-to-many relationship declarative
SQLAlchemy import tables with relationships

I have problem with separating tables with relationships in different files. I want the tables below to be in three …

python sqlalchemy relationship
How do I use automapper to map a dataset with multiple tables

DISCLAIMER: this is a copy paste from an older stackoverflow post that isn't available anymore, but I have exaclty the …

c# dataset automapper relationship idatareader
core data how to filter (NSPredicate) including a relationship requirement and given the relationship object?

How would I filter (construct an NSPredicate) for the following. Have a SCHOOL and PERSON entities One-to-many relationship, i.e. …

ios swift core-data relationship nspredicate
ruby on rails - how to make relationship works in route, controller, view ? has_many, belongs_to

I am struggling to get my relationship in rails to work. I have a User,Gallery,Comment model class Gallery …

ruby-on-rails associations relationship has-many belongs-to
SSAS One to Many Dimensional Relationship

Question in SSAS for y'all. I am attempting to define a One to Many relationship in an OLAP SSAS cube …

sql ssas relationship dimensions primary-key-design