relationships Questions
1
Solved
At first sight they seem to do the same thing: define a one-to-many relation
So why would you choose one or another?
Prosy asked 11/6, 2015 at 14:9
2
Solved
I've been looking over relationships in Laravel 4 in the documentation and I'm trying to work out the following.
I have a table in my database called 'events'. This table has various fields that m...
Melisenda asked 25/4, 2013 at 9:4
1
I'm building an app that requires a core data relationship as such:
entityA <<---> entityB (e.g. any given entityA can hold many entityB objects)
I have two tableviews with entityA list...
Stomatitis asked 4/2, 2015 at 16:52
2
Solved
I have what would seem to be a common problem yet I cannot figure out how to achieve the desired outcome. I have a nested entity with navigation properties defined on it as seen in the following di...
Furlani asked 12/1, 2015 at 20:47
2
Solved
I'm having some trouble getting my Laravel relationships to work out. In my application, there is a one-to-many relationship between users and ideas. (A user may have multiple ideas.) I'm using Ard...
Bagby asked 30/12, 2014 at 18:30
1
I am trying to create relationships between 2 types of nodes using csv file loaded.
I have already created all Movies and Keywords nodes. I created also indexes on :Movie(title) and :Keyword(word)....
Paddock asked 28/10, 2014 at 9:43
1
Solved
I am running the following code,
if( $organisation->save() ) {
if(isset($members)) {
$organisation->users()->sync($members);
}
if(isset($teams)) {
$organisation->teams()->sy...
Baseburner asked 23/10, 2014 at 12:43
1
Solved
I am trying to access the child objects of nested relationships that return many results from the parents object.
Let's say I have 4 models : Country - Provinces - Cities - Municipalities
Their ...
Endearment asked 7/9, 2014 at 20:2
2
Can anybody please provide or point out to a good comparison between Neo4j and Titan?
One thing i can see is in terms of scale - Titan is scaleout and requires an underlying scalable datasto...
Gimcrackery asked 24/6, 2013 at 6:34
2
I have three models with Many to Many relationships: User, Activity, Product.
The tables look like id, name. And in the each model there are functions, for example, in User model:
public function...
Carolinecarolingian asked 14/5, 2014 at 9:59
2
Solved
This is probably just because my knowledge with the EF Code First fluent API is lacking, but I'm stumped.
I want to model the following:
A Groups collection with Id and Name
A Users collection w...
Chthonian asked 3/6, 2011 at 14:45
1
Solved
I have a graph database that is modeling the metadata for messages and the fields that can be contained on those messages. Some of those fields can be "groups" which are groups of other fields. Wha...
Crenelation asked 23/5, 2013 at 16:6
4
I'm trying to access my parent model in my child model when validating. I found something about an inverse property on the has_one, but my Rails 2.3.5 doesn't recognize it, so it must have never ma...
Kossuth asked 9/2, 2010 at 4:27
1
I have relationships between nodes which are only valid for a specific time. Simple example: Person P lived at Address A from time t1 to time t2. I can put a validFrom and a validUntil property on ...
Kloman asked 12/3, 2013 at 15:31
3
Solved
i have a "main table", call it Customers:
CREATE TABLE Customers (
CustomerID int PRIMARY KEY NOT NULL,
FirstName nvarchar(50),
LastName nvarchar(50)
)
And i have a "satellite table", cal...
Sweatshop asked 31/10, 2012 at 21:22
1
Solved
I am building a social graph for my website. Users will create relationships (of the form follower/followed) where each party may independently follow the other. My users table looks like this:
Us...
Nonah asked 23/3, 2012 at 8:4
1
Solved
When implementing composite primary keys in Hibernate or other ORMs there are up to three places where to put the insertable = false, updatable = false in composite primary key constellations that ...
Garry asked 8/9, 2010 at 16:30
1
Solved
After reading the Object Mapping-Guide on GitHub for RestKit my problem didn't disappear, so perhaps somebody can say if RestKit could deal with the following idea.
Entities with Relationships
...
Td asked 16/2, 2012 at 20:29
5
Solved
I am trying to figure out relationships and deletion options.
I have two tables, User and UserStaff, with a 1:n relationship from User to UserStaff (a user can have multiple staff members).
When...
Cleome asked 30/11, 2011 at 21:39
1
I want to created Bi-Directional One-One relationship between two entities using EF Code First. I have trouble with the following code. What do you think I should do?
public class User
{
public s...
Whithersoever asked 8/6, 2011 at 8:47
2
Solved
In a database I want to be able to assign values of a varying type to variables in a variable table. So do I need a separate value table for each value type? If so, I am not sure how you would actu...
Curcuma asked 28/4, 2011 at 11:52
2
Solved
I have a model with has_many association.
Let's just say Student has many Courses.
I'd like to show all courses of a particular student using CGridView.
Something like this:
$this->widget('z...
Imparipinnate asked 13/4, 2011 at 9:38
1
Solved
I have a model which can be attached to to other models.
class Attachable(models.Model):
content_type = models.ForeignKey(ContentType)
object_pk = models.TextField()
content_object = generic.Ge...
Pediatrics asked 22/4, 2010 at 6:39
2
Solved
Through many iterations of testing, I just noticed that my join table that represents a HABTM relationship between two models isn't removing entries when instances of these models get deleted. Do I...
Spoofery asked 16/12, 2009 at 15:8
2
Solved
Say you have departments and employees and each department has several employees, but each employee can also be part of several departments.
So there is a many-to-many relationship between employe...
Bailsman asked 23/10, 2009 at 9:35
© 2022 - 2024 — McMap. All rights reserved.