public function findByUserAndWorkspace(User $user, Workspace $workspace)
    {
        $dql = '
            SELECT
                n.name AS title,
                m.value AS mark,
                r.total AS total
            FROM Claroline\ResultBundle\Entity\Result r
            JOIN r.resourceNode n
            JOIN n.workspace w
            JOIN r.marks m
            JOIN m.user u
            WHERE w = :workspace
            AND u = :user
            ORDER BY n.creationDate DESC, n.id
        ';

        $query = $this->_em->createQuery($dql);
        $query->setParameters([
            'workspace' => $workspace,
            'user' => $user,
        ]);

        return $query->getArrayResult();
    }