Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Atef95's avatar

3 levels relationship

Hy Artisans

I've a system that manages " containers"

For a first level : container has country_id

For a second level : I create sub_container which has season_id

For a third level : I create sub_sub_container which has quality_id

Actually it ends here.

Which is better create 3 entities ( because levels are defined) or having 1 entity + recursive relationship ?

Thank you!

0 likes
1 reply

Please or to participate in this conversation.