ManyHasMany table example #538
Unanswered
dominikmiskovec
asked this question in
Q&A
Replies: 1 comment 8 replies
-
It should have:
Resolution logic may be found here: |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am wondering how ManyHasMany table looks like.
We know that we have to create primary_x_secondary table but we don't know which columns it should have. Does anybody have an example of SQL or something like that?
We are trying to solve it for about 2 hours.
Users class
* @property Eshop[]|null $eshops {m:m Eshop::$users}
Eshop class
* @property User[]|null $users {m:m User::$eshops, isMain=true}
Beta Was this translation helpful? Give feedback.
All reactions