B
B
BonBon Slick2018-03-04 13:49:45
Doctrine ORM
BonBon Slick, 2018-03-04 13:49:45

Which join when to use?

->select('alias')
->from(User::class, 'user')
->innerJoin(Post::class, 'post', Join::WITH, 'user.id = posts.user')
//or 
->innerJoin('user.posts', 'posts')

I've seen a few more options, so I don't remember exactly.

So which approach to use when?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-03-04
@Stalker_RED

Are you asking about this?
1UKp7.pngThere are still

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question