fix bug in unset() + allow to pass a relation id instead of the object