 # Provide all required relationship fields
 # externalkey (modelname_id), modelplural for API, modelname, modelfunction
 #
-relationship_fields = (name, model, options = {}) -> [name + '_id', name + 's', name, window[model], options]
+relationship_fields = (name, model, connector, options = {}) -> [name + '_id', name + 's', name, window[model], connector, options]
 
-get_fn = (id_param, api_name, name, model, options = {}) ->
+get_fn = (id_param, api_name, name, model, connector, options = {}) ->
   (params = {}, callbackOrObservable) =>
     callback = (data) =>
       res = []

      console.error 'Empty ID. Save parent model first!'
      return
    
    if options.belongs_to?
      @.api()[api_name].destroy(options.belongs_to, @.id, id).done callback
    else
      @.api()[api_name].destroy(@.id, id).done callback
      callback = callbackOrObservable
    ###

    model.get_one @[id_param](), callback

lazy_get_fn = (id_param, api_name, name, model, connector, options) ->
  unless callback?
    callback = (data) =>
      res = []
