Many-to-many using the same table 2 times
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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