I have Comments for something and it's possible to like them. The likes are saved in the Comments
as EmbedMany(targetDocument=User)
.
I want to query for all Comments
a Specific User has liked, how do I do that?
I thought of something like:
$dm->createQueryBuilder('Comment')
->field('likes.id')
->in(array($user->getId()))
->getQuery()
->execute();
but this doesn't seem to work.