Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
57 views

I have a small laravel project with posts and categories and a many to many relationship public function post_categories(): BelongsToMany { return $this->belongsToMany(PostCategory::...
Gastono's user avatar
0 votes
1 answer
67 views

I have a table (product) as follows which holds product related data @Entity @Table(name = "product") public class ProductEntity { @Id @GeneratedValue(strategy = GenerationType....
Kasun Siyambalapitiya's user avatar
0 votes
1 answer
139 views

Problem I'm using Strapi v5 with SQLite database. My Wine content type has many-to-one relations to Category and Region, but these relations are never populated in API responses, regardless of the ...
Minilouze's user avatar
0 votes
0 answers
59 views

I get an error if my createOptionForm (in a Filament Form Select) has a Select with a 'relationship' definition instead of an options definition. I get the same issue using a Fieldset (in the ...
Lochinvar's user avatar
  • 125
0 votes
2 answers
78 views

I have a query that can get data on 3 relationships as a result: Relationship1, Relationship2 and Relationship3. But the problem is that in some cases, there may be fewer of these relationships. Tell ...
Studlara's user avatar
  • 254
0 votes
2 answers
365 views

Laravel Filament. I have an EditRecord class with Relation Managers. I need to pass some data to this Relation Manager. How to do this? <?php class EditContent extends EditRecord { public $...
Igor's user avatar
  • 1,468
2 votes
0 answers
23 views

I have a table which has VesselPositions for every insured ship. Everyday new data is added for the vessel. In that Table I have a column named: IMO, Longitutude, Latitude, VesselPositionDate. I also ...
A.Salehi's user avatar
1 vote
1 answer
39 views

I've two custom CI Types(for example: Test1 and Test2) under Node CI Type, I want to create custom relationship between them, How can I do that? I tried creating relationship from CMS UI but I couldn'...
user avatar
1 vote
0 answers
51 views

My Model: use MongoDB\Laravel\Eloquent\Model; use MongoDB\Laravel\Relations\EmbedsOne; class TextContent extends Model { public function lock(): EmbedsOne { return $this->embedsOne ...
flappix's user avatar
  • 2,259
0 votes
0 answers
97 views

I have already gone through quite a few answers on SO (eg. this one and this one, but none of them seem to work for me. I am using SQLAlchemy with sqlite, python 3.13.3. In case it matters, this is ...
Wrichik Basu's user avatar
  • 1,403
1 vote
1 answer
51 views

I am trying to show related services through my single-services.php template. I have used the ACF relationship field. When I print_r the field data, it all works. However, when I try to call specific ...
jayB's user avatar
  • 13
0 votes
0 answers
42 views

I'm currently exploring peewee ORM and in order to make some tests I've defined two simple databases with three tables as follow I then defined the peewee models into a single file from playhouse....
Arkaik's user avatar
  • 924
2 votes
5 answers
204 views

I have following table structure. Table: movies id uuid title ... 1 uuid-m01 movie 1 ... Table: categories id uuid title ... 1 uuid-c01 category 1 ... 2 uuid-c02 category 2 ... Table: movie_categories ...
Mr.Singh's user avatar
  • 2,055
0 votes
1 answer
48 views

I have a method tenants() inside the User model, now inside this method it returns like this below which is working fine, return $this->belongsToMany( Municipality::class, '...
Saiful Alam's user avatar
0 votes
2 answers
51 views

We have a few tables related as such: Mission is our main table (has two columns for morph relation to the next tables: modality_type and modality_id) Then we have various tables which contain meta ...
Vincent Mimoun-Prat's user avatar
0 votes
0 answers
39 views

I have multiple tasks table and have do relationship to link to my Unique Date Table (date purpose) and dORSID table (Each unique agent) All tasks table relationship to my Date table and dORSID table ...
JiaCheng Heng's user avatar
0 votes
1 answer
81 views

There are the two following classes with an One-to-many-Relationship between in my App: class Lesson: Object, Identifiable { @Persisted(primaryKey: true) var id: ObjectId @Persisted var name: ...
user2836375's user avatar
1 vote
0 answers
58 views

Using SqlAlchemy 1.4, in a FastAPI application, I have the need to import all the models before doing Base.metadata.create_all(). There are many tables with multiple relatinoships. How should I do to ...
Juan Pablo Poittevin's user avatar
0 votes
1 answer
70 views

This hierarchy has several top level parent nodes which roll down into children nodes which roll down into varying levels of depth containing deeper level children nodes. The level in which a node ...
Matt's user avatar
  • 3
0 votes
1 answer
44 views

I'm building application with Laravel, Inertiajs and Vue3. There are three key tables in application: Operators, Locations and Terminals. Terminals belongs to Locations and Locations belongs to ...
Mirsad Batilovic's user avatar
1 vote
0 answers
53 views

I have two fact tables: a) FACT_PURCHASE_ORDERS fields: -PO_Number -Pick Ticket Number -PO_Line_Number (po can have many line numbers) -PO_ITEM (PO_number concatenated with PO_Line_Number ...
Dave85709's user avatar
-1 votes
1 answer
72 views

I am trying to build a graph of words, where each word has a relationship to each word with the same letters plus one, like for example : table -> ablate, cablet, tabled, gablet, albeit, albite, ...
Simon W's user avatar
  • 109
0 votes
2 answers
143 views

I have a use case where I want to filter the paths retrieved from apoc.path.expandConfig based on a relationship property. Below is my current query: WITH source, candidates, exits, typesFilter // Use ...
Rohit Sharma's user avatar
0 votes
0 answers
30 views

Hello Stack Overflow community, I'm working on a Laravel 11 project where I need to import data from an Excel file. The file contains multiple columns, and I need to store specific columns (Numero BL, ...
Anas ER-RAKIBI's user avatar
0 votes
1 answer
18 views

Does any api or method to get an account's resources and the relationship between them on AWS?
ZengQ's user avatar
  • 11
0 votes
1 answer
45 views

I am working with Spring Boot JPA Hibernate. I have @ManyToMany relationship and Junction Table. One Entity is called Entity and the other Button. And then Junction Table is called ENTITY_BUTTONS This ...
ivoronline's user avatar
  • 1,127
0 votes
1 answer
423 views

I have this code that handles clients on a treatment, the relation between this model is a belongstomany, when the device is single the multiple property on client select is false, and when is grupal ...
Walter Rodriguez's user avatar
0 votes
2 answers
215 views

I am trying to create a HasOne relationship out of HasMany relationship but with added conditions. These are my models Document.php class Document extends Model { public function approvals(): ...
Kenneth's user avatar
  • 115
1 vote
2 answers
906 views

In Strapi v5 I've got these linked collection types, all many-to-many: patients, allergies, comorbidities, prescriptions. This all works perfectly well in the admin area. I view a patient: there are ...
user2205678's user avatar
0 votes
1 answer
96 views

I have a BookEntity and my domain Book model: public class BookEntity { [Key] public Guid BookId { get; set; } public string Title { get; set; } = string.Empty; public string ...
Aleksandro's user avatar
0 votes
1 answer
57 views

I'm having some troubles on creating a relationship-based program, what I need is to create a function to aggregate related nodes together, like this, if I have those 4 nodes: A B C D If A -> B, ...
kommpn's user avatar
  • 3
0 votes
1 answer
38 views

I have a model like the one in the picture where the arrows indicate the direction of the filter. I am trying to get the data from my fact tables so that, given a range of dates (which I get through a ...
David Molina's user avatar
0 votes
2 answers
62 views

I'm working on a Laravel application and I need help with filtering titles based on their relationships with practices, quizzes, and contests. Specifically, I want to retrieve titles that have ...
DigitalBraine's user avatar
0 votes
0 answers
60 views

How to properly do the relation like 'one user has many friends'? I did it like this, but do not know whether it is a bad code / approach. Maybe it's better to save just ID's of friends? Thank you! ...
endingofourlife's user avatar
0 votes
1 answer
45 views

I'm implementing a roles and permissions system that includes both team-specific and user-specific roles. I need to list all teams a user belongs to, along with the roles assigned to the user within ...
JS TECH's user avatar
  • 1,583
0 votes
0 answers
43 views

I have a table of assets which belong to blockgroups which belong to stations. Assets<Blockgroup<Station. I'm trying to filter the table down to a smaller asset list based on some conditions. A ...
Gil Wadsworth's user avatar
0 votes
1 answer
391 views

I have 2 tables in tableau & I want to create a many to many relationship between them based on an OR condition between fields. So I basically want either the account name or the parent account ...
ReemAshraf's user avatar
3 votes
2 answers
146 views

As the title describes I want to have a zero-or-one to zero-or-one relationship. For example, let's say we have two tables Calls and Files. A call might have an attached file on it, and vice versa. ...
pvarouktsis's user avatar
-1 votes
1 answer
45 views

I'm trying to better understand relationships in Prisma ORM, from the docs: model User { id Int @id @default(autoincrement()) posts Post[] profile Profile? } model Profile { id Int @id @default(...
user3125823's user avatar
  • 1,958
0 votes
1 answer
82 views

@Model class Habit: Identifiable { @Attribute(.unique) var id: UUID = UUID() @Relationship(deleteRule: .cascade) var completedDays: CompletedDays? var name: String = "" var ...
Purp's user avatar
  • 131
1 vote
1 answer
152 views

this is my first question in StackOverflow. I am here because I am trying to build a particular relationship in Laravel. I would like to be able to make something like THIS public function game() { ...
Стрэлок Виамонтэ's user avatar
-1 votes
1 answer
119 views

I have created SSAS Tabular Model, in this model there is a date dimension table. After connecting to the model in Power BI, I am facing a problem that the Date relationship is working for some tables,...
Monther's user avatar
  • 31
-1 votes
2 answers
66 views

After I made a project by Flask and SQLite, I want to make it by Django. I succeeded in adding foods to certain date. And calculates the total calories but I fail to show the days with total calories ...
Clever's user avatar
  • 9
0 votes
1 answer
187 views

i have created many to many relationship of tbl_products with tbl_sub_categories table using pivot table. and sub_categories are depends on categories, it's fine i am able to get dependent data. but ...
shazim ali's user avatar
0 votes
1 answer
176 views

In my FastAPI app, I use sqlalchemy. The main goal of the app is that each user is stored in a sqlalchemy table users and can create different contents (25+ different contents). Each content has its ...
Cesar Mry's user avatar
0 votes
1 answer
33 views

How do I query based on data in another table in a related query? There are 2 "divided order" data, I want to filter them by id. Thanks in advance for your help my code; $data = ...
onur's user avatar
  • 43
1 vote
0 answers
77 views

I'm using SwiftData with CloudKit and I have the following two classes: @Model class Category { @Relationship(deleteRule: .cascade, inverse: \Book.category) var books : [Book]? var project: ...
Ser Pounce's user avatar
  • 14.4k
0 votes
0 answers
32 views

Which side of relationship(In all possible mapping cardinality) can have entities that are not associated with any entity on the other side: the "one" side or the "many" side or &...
Arjun Kumar's user avatar
1 vote
1 answer
370 views

I have the following model set up in my app which utilizes SwiftData and Cloudkit. A Project object has an array of Book objects. A Book object has an array of Reader objects. A Reader object has an ...
Ser Pounce's user avatar
  • 14.4k
0 votes
1 answer
61 views

So I have a Customer entity and a Movie entity and I configured the many to many relationship correctly and EF created the third table CustomerMovie with two FK's being CustomerId and MovieId both ...
Yazeed Fayoumi's user avatar

1
2 3 4 5
130