-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(hasMany->belongTo) Which one to choose for these relationships? #49
Comments
Please post the two individual relationships or the structure of all three tables. |
translators : id
name articles : id article_translations : id
locale
title
article_id
translator_id I need to Article->translators() and reverse Translators->articles() thank you |
That's a standard |
But the translators have no direct relationship to the articles. I want to get articles with a specific translator as well as all the articles with a specific translator. |
They are connected by the pivot table. |
Hi Dear,
I have these relations:
Article->(hasMany)Translate->(belongTo)translator
I need to Article->translators() and reverse
thanks
The text was updated successfully, but these errors were encountered: