I created a query that returns all associated projects from the user ID:
return $this->createQueryBuilder('p')
            ->innerJoin('p.project_contributors', 'pc')
            ->Where('p.project_owner = :val')
            ->orWhere('pc.id = :val')
            ->setParameter('val', $value)
            ->getQuery()
            ->getResult()
;
The problem with this is that if a project has no contributors, and only a project owner, then this will return null. Why is that?
Project contributors are its own entity that are associated to projects.
 
    