Respect / Respect/Relational

Many-to-many using the same table 2 times

Open
#83 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
237
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Hello,
How columns should be names to allow a many-to-many relationship when the same table is referenced, for example

table customer(id)
table customer_customer(id, customer_id, other_customer_id, other_data)

how the other_customer_id should be named to be respect compliant?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by reviewing the repository's relationship and naming conventions, then determine whether self-referential many-to-many relationships are supported. Done would require a decided column-naming convention and corresponding documented or tested support.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.