public function processInvitationByHash(User $user, $hash)
    {
        $invitation = $this->dm->getRepository('WobbleCodeUserBundle:Invitation')->findOneBy(
            [
                'hash'   => $hash,
                'status' => 'pending'
            ]
        );

        if (!$invitation) {
            return false;
        }

        $organization = $invitation->getOrganization();
        $this->addMemberByInvitation($organization, $user, $invitation);

        return $organization;
    }