Questions tagged [relationship]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
63 views

save data under a ordered core data relationship

In my swift code below the goal is to save a string to a core data relationship. In class two there is a func that adds a string to the tableview in that class. But that added string is only displayed ...
Bike Smith's user avatar
0 votes
0 answers
14 views

Relation property : EditGuesser, ReferenceArrayInput and CheckboxGroupInput

I want to use a CheckboxGroupInput to modify a OneToMany property (account). I have code that works with an ArrayInput and many list, but I don't find it practical and would prefer to use checkboxes. ...
Emmanuel's user avatar
0 votes
1 answer
28 views

How to examine a relationship between two variables, factored by a third?

I need to examine the relationship between one variable (cumulative.cat which is reported as 0 and 1) and another variable (ability, which is reported as "likely" and "unlikely"), ...
sam.min's user avatar
0 votes
1 answer
34 views

ACF Wordpress - relations - Other publications assigned to the same article

I have a problem that I have publications that are assigned to articles and I need to display other publications that are assigned to given articles on the details of a given publication. Each ...
clover's user avatar
  • 45
0 votes
0 answers
34 views

Simplifying a nasty has many through triangle relationship, Normalizing data and the entity relationships

I'm working on normalizing some data via UI, where the data is not big data and it needs to be done by a human so I'm doing this via CRUD + forms etc on a Rails app and Postgres. I have the following ...
ChrisCPO's user avatar
  • 443
-1 votes
1 answer
26 views

Core Data: 1:1 Relationship to other entity or keep everything in one entity?

I have an Entity in Core Data that contains multiple "small" attributes like String and Int. But I also have one binary attribute that contains ~500kb data. This attribute is specific and ...
Mike Nathas's user avatar
  • 1,281
0 votes
1 answer
24 views

Laravel BelongsToMany on different databases

In my app (Laravel 9) users can belong to groups, and users can access resources "attached" to the group(s) they belong to. However the resources are stored on a different database (we use ...
Stefano's user avatar
  • 554
-1 votes
0 answers
21 views

PowerBI Table Relationships

I am trying to connect 3 datasets together based on a column that shows year and quarter. I do have another 1 to 1 relationship between the bigger 2 datasets that works just fine. When trying to ...
narsil's user avatar
  • 21
0 votes
0 answers
38 views

save a string to a core data relationship

In class Viewcontroller the user saves names to entity Person Attribute name. What I would like to do is when the user hits a name on a tableviewCell in class View controller and is segued to class ...
Bike Smith's user avatar
0 votes
0 answers
28 views

How to manage concretely with unamangeable model relationship in Power BI

I was asked to use two sources of data sharing the same column and build both a many-to-one and one-to-one relationship with PowerBI. It is not possible to modelize any of two relationship and ...
12666727b9's user avatar
  • 1,015
1 vote
1 answer
26 views

How to disable lazy loads on a newly-persisted SQLAlchemy 2.0 model?

I have a routine that accepts an instance of a SQLAlchemy model. One thing that it does is look at the number of child objects. This works fine if I have loaded the model through the ORM's select() ...
Jonathon's user avatar
  • 456
0 votes
0 answers
24 views

connect a tableview to a core data relationship

I am working to write a swift app that connects a singer to the songs they wrote. Which means in core data I will have to create a relationshp between 2 core data entites. So a singer can have many ...
Bike Smith's user avatar
-1 votes
0 answers
32 views

path not being found when trying to connect core data entities via relationships

I want to configure my code so that when a user clicks on a cell in class Viewcontroller and then is segue to Detail view controller it can save items to tableview in a way that it corresponds to its ...
Bike Smith's user avatar
0 votes
0 answers
9 views

has-one-through & has-many-through Laravel Eloquent Relationships

Table 1 (Year) Table 2 (Academic Year) Table 3 (Admission Register Table 1 field Names = id, title Table 2 field Names = id, year_id Table 3 field Names = id, batch_id, academic_year_id, roll_number,...
Ram Babu's user avatar
0 votes
0 answers
24 views

OpenLayers LineString

I am new to openLayers and would like to know how to simply apply a line from a node to another node to display/identify that each (co-ordinated) node has a relationship (as shown in the image). ...
Jack Jones's user avatar
-1 votes
1 answer
24 views

Table 'shopping_cart', which contains 2 foreign key as primary key and other foreign key, have an error with relationship while importing data

While importing data, I have Error Code: 1452. Cannot add or update a child row: a foreign key constraint fails (`mydb_innodb`.`shopping_cart`, CONSTRAINT `fk_shopping_cart_order_payment1` FOREIGN KEY ...
klyonsie's user avatar
-1 votes
0 answers
16 views

MS Access Relationship that seems backwards

I read these relationships from an access database schema: [Person StreetAddress Crossconnect].[Street ID] REFERENCES [Address].[Street ID] [Person Birthday Crossconnect].[Birthday ID] REFERENCES [...
m marshall's user avatar
0 votes
0 answers
17 views

infinite loops on relationship @ManyToOne in Spring Boot

I have two entities: Country and Province, with their data in a database. The relationship between them is established using the @OneToMany and @ManyToOne annotations, respectively. When querying the ...
sebcostilla's user avatar
1 vote
1 answer
50 views

How to query document by nested relations?

I have Folder, Video and Access collections in my MongoDB database. Folder can have few Video(one-to-many) and Video can have few Access(one-to-many). I want to find Folders where Videos have specific ...
Hüseyn's user avatar
  • 15
1 vote
1 answer
72 views

Double binary relationship with weak entity vs ternary relationship

I have a problem that states that a group of servers send daily data through a group of data lines. Each server has an id and each data line has an id. I've come up with a couple of ideas but I'm not ...
daniel's user avatar
  • 138
1 vote
1 answer
49 views

Instantiated a SQLAlchemy Declarative mapped class requires the autogenerated and relationship attributes to be set

I have a one-many table relationship between Company and Element and think I have defined them correctly class Base(MappedAsDataclass, DeclarativeBase): pass class Company(Base): ...
dkhokhar's user avatar
1 vote
1 answer
38 views

Do Entity-Relationship diagrams need attributes to represent relationships?

I'm designing an ERD for an assignment. The brief will contain relationships, such as "Every employee is assigned to a single department". I could add a field in the entity: "Assigned ...
Jack Sack's user avatar
0 votes
1 answer
45 views

Relationship Type Between Comments and an App

I'm new to setting up database schemas and am working a problem where I have multiple models that should contain a comments section. I'm using Django with SQLite for reference. For example I'll have ...
Mike Dergance's user avatar
0 votes
1 answer
29 views

How to maintain data integrity in Laravel Morph relationship on database layer?

In the context of a SaaS-based system, I am designing a role management system using Laravel's Morph relationship technique. This system involves assigning roles to both company entities and admin ...
Khurram Saddique's user avatar
0 votes
3 answers
112 views

Sending values of Dropdown list and list

I have three models: public class Student { public int StudentId { get; set; } public string StudentName { get; set; } public string Father { get; set; } public string PhoneNumber { ...
amir's user avatar
  • 3
0 votes
0 answers
23 views

Check usage before deleting an user(Model)

I have a database, with more than 20 tables and each table has the created_by, modified_by, and deleted_by columns. I have to prevent users from deleting the entries from the Users table when it is ...
Fasna's user avatar
  • 566
0 votes
1 answer
38 views

Recursive many to many relationship in mysql

I am developing an application that's used to manage sales business of a company. Their business are multi layer, means a sales person A is managed by another sales person B, and that sales person B ...
Lê Vĩnh Nghiêm's user avatar
0 votes
1 answer
19 views

Using a Slicer to Toggle Relationships for Multi-Address Scenario in Power BI

In my Power BI model, I've set up a 'SalesRep' table containing [SalesPersonName] and their associated [Territories], as well as a 'Clients' table with [ClientCode], [Address1_territory], and [...
Lakovsky's user avatar
0 votes
1 answer
41 views

Using SQLAlchemy relationships while avoiding circular dependency with imports

I am having a problem using db.relationships. I noticed that to use relationships in my queries, each models that references another through a relationship has to be aware of that model (through ...
Grooth's user avatar
  • 65
0 votes
0 answers
10 views

Building relation in Django rest_framework

class Company(Timestampable, SoftDeletes): id = models.UUIDField(primary_key=True, unique=True, editable=False, default = uuid.uuid4) creator = models.ForeignKey(settings.AUTH_USER_MODEL, ...
Amith's user avatar
  • 1
0 votes
0 answers
29 views

How to build a data entry form with prepopulated fields from parent record in crm app

I'm building a CRM/Service database in MS Access with the following structure: Accounts Table (AccountID) Contacts Table (ContactID and AccountID for 1 to many) Service Orders Table (SONumber and ...
Rich's user avatar
  • 39
0 votes
0 answers
13 views

How to deserialize a relationship from a Cypher query, retaining a dynamic relationship type?

Let's start with an example data set. There are 2 nodes and 2 relationships with differing relationship types between them. Both nodes and relationships have properties. Don't focus too much on the ...
Chris Tophski's user avatar
0 votes
0 answers
13 views

Django Model subset of database table

All of my models are not managed as they are based on a legacy database. There is a Partner master table holds amongst other things an ID, Code, Name and a PartnerTypeID which is a ForeignKey ...
Bruce's user avatar
  • 43
0 votes
0 answers
55 views

Using filament form layout store belongsTo many relation data

I have 2 models User and Restaurant. Where the user has many restaurant relations concepts. Models\User.php public function restaurants(): HasMany { return $this->hasMany(Restaurant::class); } ...
Mitesh Rathod's user avatar
0 votes
0 answers
101 views

Filament Relations - parent/child

I have two models Customers and Orders. The relationship is 'customers.id' -> 'orders.customer_id' (primary field in Orders). I have 2 resources - CustomerResource and OrderResource, self-...
Maha Pappan's user avatar
0 votes
0 answers
20 views

Analysis for many Categorical and one Continuous trait

My dataset contains multiple nominal non-binary variables (i.e- beak shape type, general eye position) which are represented/coded as numbers. For instance, for 'beak shape type' there are 4 options, ...
Batro's user avatar
  • 1
0 votes
2 answers
57 views

Count all the nested relationship records using Laravel eloquent

Currently, I am building comments for a post whose model looks this: class Comment extends Model { use HasFactory; protected $fillable = ['user_id', 'post_id', 'parent_comment_id', 'text', '...
JS TECH's user avatar
  • 1,535
0 votes
1 answer
60 views

One to Many relationship with Spring Data JPA, @Entity type not recognized

I am trying to create a unidirectional one to many relationship in Spring Boot app. I have Users and Devices. One user can have multiple devices. I am working with microservices, so I have one module ...
Flavia Moldovan's user avatar
0 votes
2 answers
94 views

Why do I need to pass the model class instead of id in Entity Framework Core relationship

Let's say that I have a model class in .NET called "B" which has a required fk (one-to-one relationship) from the model class "A". The code of the models should be something like: ...
guirms's user avatar
  • 262
-1 votes
2 answers
55 views

Is it possible to create two databases whose primary keys will never equal each-other?

For a project I am making I have two databases, a user database and a club database. Would it be possible to make it so that the two databases had primary keys that will never equal each-other. For ...
JustAGuy's user avatar
0 votes
0 answers
29 views

Encountering Error While Establishing a Relationship in EF Core

I want to create a migration in the project that I want to develop with ASP Net Core, but I am getting the error I added below. I also added entities. Can you help me ? Unable to create an object of ...
oguzalparslan's user avatar
0 votes
2 answers
36 views

Is there any way to store a One to One, One to Many or Many to Many relationship (Ids) in both respective collections in Express Js with Mongoose?

I have two Different Schemas User and Article A user can publish many articles for which the relationship is One to Many The scehmas are as follows const mongoose = require("mongoose"); ...
Syed Faraz Ahmed's user avatar
0 votes
1 answer
39 views

SQLAlchemy add child to an already existing parent: KeyError

I have looked through similar questions on stackoverflow but found no working solution for my particular case. I suspect the problem is on the stage of creating a parent class as I create it without ...
Ani's user avatar
  • 149
0 votes
1 answer
87 views

.NET Core EF polymorphic one to many relationship between multiple models

I've started learning .NET Core. Now, I've bumped into a problem related to one to many relationship. I have Buildings and Rooms models. Both store images into images table (Images model). Here, I'm ...
Alisher Nasrullayev's user avatar
-1 votes
2 answers
48 views

How to make relationship between two tables in laravel?

my database has two tables "games" and "teams". games migration: $table->unsignedBigInteger('homeTeam'); $table->unsignedBigInteger('awayTeam'); $table->foreign('homeTeam')...
Halgord's user avatar
1 vote
1 answer
25 views

Entity Framework Core not saving all one-to-one relationships on an entity

I have a BankReport entity class with 71 optional, one-to-one relationships. All of the 71 related entities are similar. They all have a PK / FK which is the ID of the parent BankReport. If I create a ...
Eric F's user avatar
  • 21
0 votes
0 answers
47 views

Is there native functionality within Dataverse to establish multi-table relationships that automatically update?

I'm in the process of creating a Dataverse database for tracking details of my Suppliers, their Products, and the Systems that they are used in. The functionality that I want is to be able to provide ...
fite's user avatar
  • 13
0 votes
0 answers
7 views

Method to see how a variable effect others variable

i've been working for some projects that involving spareparts life-time. I have tabular data with numeric value. I want to know if there any way to knowing that how if i changing 1 variable, i want to ...
Yohanes Yordan's user avatar
0 votes
0 answers
28 views

how to avoid circular import when defining annotated relationship in sqlalchemy2.0

Below is an example used in the official doc: class Parent(Base): __tablename__ = "parent_table" id: Mapped[int] = mapped_column(primary_key=True) child: Mapped["Child"...
moon548834's user avatar
0 votes
2 answers
32 views

Saving issue about relationship with laravel backpack

I have a field in ImageCrud controller. $this->crud->addField([ 'label' => "Etiketler", 'type' => 'select_multiple', 'name' ...
Fatih Toprak's user avatar
  • 1,097

1
2 3 4 5
113