Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Query/filter pivot table #155

Open
rjsworking opened this issue Jun 27, 2017 · 0 comments
Open

Query/filter pivot table #155

rjsworking opened this issue Jun 27, 2017 · 0 comments

Comments

@rjsworking
Copy link
Contributor

rjsworking commented Jun 27, 2017

Hi. This is not an issue. Just a question.

Ex:

$blue = $colorRepo->with('translations')->find('blue'); and I get all 'blue' translations.

There's a pivot table that consists of translation_id and color_id (from translation and color tables)

If the user has and/or have selected the 'fr' locale, I just need to get the french translation of 'blue'.
Is this a case for scopes/criterias ?

Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant