R
R
Rodion Yurchenko2017-04-18 23:09:30
symfony
Rodion Yurchenko, 2017-04-18 23:09:30

How to extract an entry from manyToMany in symfony 3?

Good afternoon
There are 3 tables, User(fosUserBundle), Project, and the third project_user - manytomany link table
generated by doctine itself (there is only user_id and project_id)
How to pull out all projects that belong to a specific user based on records in the project_user table?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fortop, 2017-04-19
@Fortop

To begin with, you will have to create an entity corresponding to project_user
AND associate it directly with the first two.
Because the doctrine generates connections without creating an entity.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question