findBy on ManyToMany relation #10339
Unanswered
wahu0001
asked this question in
Support Questions
Replies: 1 comment
-
I do not think that this is possible, due to the fact that the fields on Course is declared as $user (due to the ManyToMany relationship), and not $user. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With my ManyToMany relation between User and Area is it possible to make a findBy on one of this entity like that
`$user = $this->userRepository->find(1);
$this->areaRepository->findBy(['users'=>$user]);`
and then fetch all areas associated to $user
Beta Was this translation helpful? Give feedback.
All reactions