Top "Relationship" questions

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

ER-Diagram: Ternary Relationship - How to read properly?

Im not quite sure how to read ternary relationships within a ER-Diagram. Lets say this is the ternary relationship that …

model entity-relationship relationship ternary
How do I access the properties of a many-to-many "through" table from a django template?

From the Django documentation... When you're only dealing with simple many-to-many relationships such as mixing and matching pizzas and toppings, …

python django django-templates many-to-many relationship
SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias on relationship

So, I'm receiving the following error from Laravel framework; but I couldn't find why this framework is producing this error: …

mysql laravel eloquent laravel-4 relationship
Get ids array from related laravel model which is having belongsToMany relationship

I have a model Role which belongs to many Users. Class Role { public $fillable = ["name"]; public function users() { return $this-&…

php mysql laravel eloquent relationship
Representing parent-child relationships in SharePoint lists

I need to create some functionality in our SharePoint app that populates a list or lists with some simple hierarchical …

sharepoint list parent-child relationship
Can't get Laravel associate to work

I'm not quite sure if I understand the associate method in Laravel. I understand the idea, but I can't seem …

php laravel relational-database eloquent relationship
How to view database diagram in a Code First using localdb

I have a Code First project with Entity Framework 5.0.0 using localdb created in Visual Studio 2012 Ultimate. Although I can see …

database entity-framework visual-studio-2012 relationship diagram
Laravel whereDoesntHave() - multiple OR conditions

In Laravel 4.2 I have a model called Product with many-to-many relationshis to other models like Country or Category. I want …

laravel relationship
Programming a one-to-many relationship

So I am surprised that doing a search on google and stackoverflow doesn't return more results. In OO programming (I'm …

java oop one-to-many relationship
Saving CoreData to-many relationships in Swift

I have a one-to-many relationship that looks like so, I've set up my model classes in a file to match: …

ios macos core-data swift relationship