       console.error 'Empty ID. Save parent model first!'
       return
     
+    api = connector.get api_name
+
     if options.belongs_to?
-      @.api()[api_name].destroy(options.belongs_to, @.id, id).done callback
+      api.destroy(options.belongs_to, @.id, id).done callback
     else
-      @.api()[api_name].destroy(@.id, id).done callback+      api.destroy(@.id, id).done callback
  unless @[id_param]()?
    console.error 'Tried to access empty relation key: ' + id_param
    return false
  
  unless callback?
    callback = (data) =>
      @[name] model(data)
  
  model.getOne @[id_param](), callback

create_fn = (id_param, api_name, name, model, options) ->
  (params = {}, callback, instant = false) =>
    unless callback?
      callback = (data) =>

        res.push model(m)
      @[api_name] res

    api = connector.get api_name

    api.read(@.id).done callback

lazy_single_get_fn = (id_param, api_name, name, model, connector, options) ->
  if typeof @[id_param] != 'function'
    console.error 'External key not an observable: ' + id_param
    return false
