G
G
GS32019-12-20 11:53:11
Laravel
GS3, 2019-12-20 11:53:11

How to synchronize an intermediate table with three links?

tell me how to synchronize an intermediate table with three links?
Intermediate table
A_B_C
a_id | b_id | c_id
Or is it generally a bad idea to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Suha, 2019-12-20
@GS3

If you have only one level of nesting i.e.
Category
- sub category
Then look in the direction of this
If the nesting is theoretically infinite, then nested set as advised above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question