Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

The context is a Symfony 6 project wired with Doctrine 3. I have a ManyToMany relation between Projet and Employe, and in the list page of the projects i want to display only the projects for whom the ...
achepalavinche's user avatar
0 votes
0 answers
60 views

so i have a many to many relationship data about categories and product here the table -- public.product definition -- Drop table -- DROP TABLE public.product; CREATE TABLE public.product ( id ...
Frentzen Chan's user avatar
0 votes
1 answer
70 views

I have 2 tables and a many-to-many relationship between them. For this many-to-many relationship to work, I created a new table. This many-to-many table has only the ids of the other 2 tables: ...
Claudiu Dascalu's user avatar
-1 votes
1 answer
48 views

Given a 'many-to-many' relationship between Event and Users, I'm having trouble retrieving attendees' details when I retrieve an event by its id. Output: Event(id=1, attendees=[]) Classes are as ...
dragsu's user avatar
  • 129
0 votes
3 answers
58 views

I have an application with a User model and a Group model as well as a Many-To-Many relationship defined between both models. I now would like to check if a user is member of a specific group. I know ...
TomS's user avatar
  • 511
1 vote
0 answers
250 views

I'm trying to achieve this Add functional tests to my Go project The tests should bring up an actual MySQL database (by connecting to a docker container already up and running from the docker ...
LaserJesus's user avatar
  • 8,590
0 votes
1 answer
51 views

I'm encountering an issue with a @ManyToMany mapping in my Spring Boot application using Hibernate. The problem arises when Hibernate tries to execute a query involving the join table for a Set<...
Malumbo's user avatar
0 votes
1 answer
44 views

I was wondering whether the following would be either one-to-many or many-to-many relationship The Users and Services tables are defined as follows: USERS SERVICES +---+------------+...
Rekwass's user avatar
  • 19
1 vote
1 answer
29 views

I can't understand, what benefits we get when adding models.ManyToManyField if using intermediary model? Is it necessary? I want to use base (not custom) user model in my project. Should I redefine ...
Artem Balanov's user avatar
1 vote
0 answers
222 views

:D I can't make a Many to Many Relationships between two Laravel Sushi Models. For example, I have two sushi models: Product and Category. I want to make a many-to-many relationship between them. ...
Dayan Bravo Fraga's user avatar
0 votes
1 answer
43 views

I have the following typescript TypeORM model: @Entity() export class Student extends EntityBase { @Column({ length: 256 }) public firstName: string @Column({ length: 256 }) public ...
khteh's user avatar
  • 4,280
0 votes
1 answer
51 views

I have the following typescript TypeORM model: @Entity() export class Teacher extends EntityBase { @Column({ length: 256 }) public firstName: string @Column({ length: 256 }) public ...
khteh's user avatar
  • 4,280
-1 votes
1 answer
176 views

I have an entity Professionnal with Jobs in API Plateform project 3.2. When I call host/api/professionnals I got a result like this : { "data": [ { "id": &...
J.BizMai's user avatar
  • 2,806
1 vote
1 answer
77 views

I have a table of posts, a table of hashtags, and a table linking posts to hashtags, like so: CREATE TABLE posts( id SERIAL PRIMARY KEY, post_data VARCHAR(128) NOT NULL ); CREATE TABLE hashtags ( id ...
learnandgrow's user avatar
1 vote
2 answers
44 views

I have a model Product, and the same product can be sold by multiple supermarkets and outlets, so I define two BelongsToMany relationships for them: class Product extends Model { public function ...
kykywei's user avatar
  • 53
0 votes
1 answer
151 views

I have an app that retrieves iOS contacts from the UI and then creates "ProductionContact" objects from them. My goal is to assign these contacts to numerous existing shoots and productions. ...
MischkaTheBear's user avatar
0 votes
0 answers
32 views

Laravel doc provides polymorphic "many-to-many" sample (pivot table taggables) with the following structure: taggables tag_id - integer taggable_id - integer taggable_type - ...
vbulash's user avatar
  • 395
0 votes
2 answers
218 views

EF Core beginner here, so please be patient. We're trying to migrate an existing app from NHibernate to EF Core and we're facing several interesting issues. One of them is related with unidirectional ...
Luis Abreu's user avatar
  • 4,682
-1 votes
1 answer
43 views

I have a many-to-many relationship between a Category and an Attribute object since every category can have many attributes. This is my Category object: @Data @Entity @Table(name = "categories&...
zaro's user avatar
  • 83
1 vote
0 answers
58 views

I just started to study promql and playing with it. And studying two vector operators, I tried to the promql below expecting to get 1 for all samples. Query (sum by (__name__) ({__name__=~"count_....
Ryan Lee's user avatar
1 vote
0 answers
59 views

We have two Oracle tables like this: TABLE_1 ------- CODE_TABLE_1 | LIBEL_TABLE_1 ----------------------------- code_table_1.1| libel_table_1.1 code_table_1.2| libel_table_1.2 code_table_1.3| ...
medkhelifi's user avatar
  • 1,141
1 vote
0 answers
760 views

Question: I'm using Drizzle ORM version 0.30.10, and I'm working with a many-to-many relationship in my database schema. Currently, I receive the related records as objects, but I want to receive them ...
user2170991's user avatar
0 votes
2 answers
48 views

I'm currently building an API assigned for an ecommerce project using Laravel framework. While getting help to build data migrations and Models, I got confused on how the product_categories, the ...
João Sucupira's user avatar
1 vote
1 answer
57 views

My model: class RecipeTag(models.Model): tag = models.CharField(max_length=300, blank=True, null=True, default=None, db_index=True) recipes = models.ManyToManyField(Recipe, blank=True) ...
Artem Mashin's user avatar
1 vote
0 answers
54 views

public class Invoice { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") private Long id; // Some fields ... @ToString.Exclude ...
S De Silva's user avatar