Commit 560c97b3 authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Fix le bug remplacer une personne

parent 11c70add
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')