public function findOrFail($id)
    {
        $user = $this->find($id);

        if (! isset($user->id)) {
            throw new QueryException("User [{$id}] not found.");
        }

        return $user;
    }