これまでに次のクエリがあります。
$shopQuery = $qb->select('DISTINCT u')
->from("BlahUserBundle:User", 'u')
->innerJoin('u.followers', 'followers')
->andWhere('followers.id != :userId')
->setParameter('userId', $user->getId())
->orWhere('') //or where those user who doesn't have a follower yet
//->setMaxResults(5)
;
フォロワーがなく、フォロワーが自分ではないすべてのユーザーを照会する方法を見つけようとしています (この場合、自分は です$user->getId()
)。どうすればいいですか?