Adds the user for this loan to a 'user' field.

        User is a MambuUser object.

        Returns the number of requests done to Mambu.

def setUser(self, *args, **kwargs):
        """Adds the user for this loan to a 'user' field.

        User is a MambuUser object.

        Returns the number of requests done to Mambu.
        """
        try:
            user = self.mambuuserclass(entid=self['assignedUserKey'], *args, **kwargs)
        except KeyError as kerr:
            err = MambuError("La cuenta %s no tiene asignado un usuario" % self['id'])
            err.noUser = True
            raise err
        except AttributeError as ae:
            from .mambuuser import MambuUser
            self.mambuuserclass = MambuUser
            try:
                user = self.mambuuserclass(entid=self['assignedUserKey'], *args, **kwargs)
            except KeyError as kerr:
                err = MambuError("La cuenta %s no tiene asignado un usuario" % self['id'])
                err.noUser = True
                raise err

        self['user'] = user

        return 1