- /**
- * Find all tags.
- *
- * @param int $userId
- *
- * @return array
- */
- public function findAllTags($userId)
- {
- return $this->createQueryBuilder('t')
- ->select('t')
- ->leftJoin('t.entries', 'e')
- ->where('e.user = :userId')->setParameter('userId', $userId)
- ->getQuery()
- ->getResult();