i know how to add service member for customer user, that there is method CustomerUserServiceMemberAdd on Kernel::System::Service Object, but i cannot find some method to remove service member from this file. Is there any option to do that? since, i want to syncronice my php application with otrs, i need to do this.
I found this code :
Code: Select all
# delete existing relation
return if !$Self->{DBObject}->Do(
SQL => 'DELETE FROM service_customer_user WHERE customer_user_login = ? AND service_id = ?',
Bind => [ \$Param{CustomerUserLogin}, \$Param{ServiceID} ],
);
inside CustomerUserServiceMemberAdd method. but i don`t understand what the meaning of !$Self->{DBObject}->Do.