Questions tagged [relationships]

Relationships refer to mappings between elements of one set to another set, such as one-to-one, one-to-many, many-to-many.

Relationships can be implicit or explicit depending upon the data model.

Types of relationships

References

832 questions
0
votes
0 answers

Can you use Pivot View to enter data in Microsoft Access

I have an application that is currently using Microsoft SQL Server Lite, however I'm building a Microsoft Access database to replace the SQL Server Lite so that I can use Pivot Table Queries. For the time being, I'm working in Microsoft Access until…
PAUL DUFRESNE
  • 348
  • 3
  • 4
  • 11
0
votes
1 answer

Backbone.js Model with 2 parents

I would like to create a backbone based page where there are undefined amount of columns and rows in a table-like layout. The 'table' structure and cell data should be saved to the backend. The simplified models…
materemias
  • 131
  • 1
  • 2
  • 7
0
votes
1 answer

following fifo in redis

I am trying to implement a Following system in Redis, but I am unsure of how to do it, as I need some sort of queue system as well. This is what I was thinking: user A, B, and C are following user X, so for the user X to check his followers, I was…
john smith
  • 749
  • 3
  • 7
  • 11
0
votes
1 answer

How to change the User Relationship tab path

I use the module User Relationships in Drupal 7 and it generated a nice tab in on the User Profile. I use a specific type of relationship "friends" so I need both the tab as the path to reflect this. I already user the module Tab Tamer to overwrite…
m4rinos
  • 458
  • 4
  • 9
0
votes
1 answer

Rails Guide: Association Basics, inverse_of relationships, failure to understand outcome of self tests

I'm not completely new to Rails, but I'm taking another pass at all the basic guides in an exploratory repo I've been using to flush out my own knowledge. I'm on this one right now: http://guides.rubyonrails.org/association_basics.html I got to…
BadQuanta
  • 56
  • 5
0
votes
1 answer

Database modeling relationship between 'objects'

I want to model, analyze and create a database consisting of information from a card game. Each round of the game would have an ID, time stamp, and 4 or more players (usually 4). I have defined my player table with its set of attributes. However…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
1 answer

Django travel up or down relationships in a generic way

I am trying to rewrite my Django code to make it as generic as possible on all levels. Say I have the following models: class Tvshow(models.Model): pass class Season(models.Model): tvshow = models.ForeignKey(Tvshow) class…
tBuLi
  • 2,295
  • 2
  • 16
  • 16
0
votes
1 answer

Which class i need to use for custom authentication in symfony2

I am totally confused with the object oriented inheritance things I have this scenario Class User Then Class Employee extends User attributes username, password then Class Owners extend User Each class has different attributes Now all the…
Mirage
  • 30,868
  • 62
  • 166
  • 261
0
votes
1 answer

How to map many to many relationship with composite key in symfony2 Doctrine ORM

I have this scenario I have four classes User profiles Activity Workbook user can have many profiles based on per year. Every year diff profile User profile will have many to many with Activities so there will be profile_activities table with…
Mirage
  • 30,868
  • 62
  • 166
  • 261
0
votes
1 answer

CakePHP HABTM relationship issue

I'm trying to create a social networking type of website where a user can send/receive a friend request. In our current system when a user sends a request half the required information is stored in the database then when a user accepts the rest of…
user1402677
  • 269
  • 2
  • 12
0
votes
2 answers

App Engine Many To Many Relationships JAVA

I have been banging my head against the wall trying to correctly configure a many to many relationship which should be straight forward. I have A shopping list class, and an items class. I simply want shopping lists to be able to hold a list of…
NathofGod
  • 479
  • 5
  • 12
0
votes
1 answer

DataMapper Self Relation Model

Hi I am using CodeIgniter with DataMapper and really need some help defining relationship in a model class (DataMapper Model Class) How would I write the model relation for this. Slightly confused about the Self relation, i.e menu item and sub…
ebsol
  • 3
  • 4
0
votes
1 answer

Load up entity from db rather than pulling data directly from db

I created an iOS app that allowed me to enter data into database and then display in tableview (using NSFetchedResultsController & tableView cellForRowAtIndexPath). This worked. Now, I added 3 one-to-many relationships and another entity and I need…
jpgr
  • 278
  • 2
  • 3
  • 13
0
votes
1 answer

Which relationship line to use in a UML class diagram?

In a UML class diagram I want to show the relationship between two classes where the second class is the type of a class variable in the first. I've looked here but am still unsure which relationship I should be using. I think it may be the…
Chris
  • 3,036
  • 5
  • 36
  • 53
-1
votes
5 answers

Laravel relationship hasMany not working

I want to print the name of the user by finding it with 'finished_by' column where id of user is stored. but i get this error: Trying to get property 'name' of non-object Inventory model has finished_by which has user ID. This is mine…
Nemanja
  • 119
  • 1
  • 3
  • 16