Commit 7e0363dd authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Merge branch 'starling' of git.unicaen.fr:open-source/oscar into starling

parents 46ad8ed0 0a8ce055
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -239,11 +239,11 @@ class RoleRepository extends EntityRepository

    /**
     * @param string $roleId
     * @return array
     * @return Role
     * @throws NoResultException
     * @throws \Doctrine\ORM\NonUniqueResultException
     */
    public function getRoleByRoleId(string $roleId): array
    public function getRoleByRoleId(string $roleId): Role
    {
        $queryRole = $this->createQueryBuilder('r')
            ->from(Role::class, 'role')