Added attribute of relation which can't be done a lookup.

This commit is contained in:
Martin Edenhofer 2014-06-22 09:15:49 +02:00
parent 37bdde8272
commit 4400144c41

View file

@ -301,7 +301,7 @@ class App.Model extends Spine.Model
item = App[ attribute.relation ]._fillUp(item) item = App[ attribute.relation ]._fillUp(item)
data[ withoutId ] = item data[ withoutId ] = item
else else
console.log("ERROR, cant find App.#{ attribute.relation }.find(#{ data[attribute.name] }) for '#{ data.constructor.className }' #{ data.displayName() }") console.log("ERROR, cant find #{ attribute.name } App.#{ attribute.relation }.find(#{ data[attribute.name] }) for '#{ data.constructor.className }' #{ data.displayName() }")
data data
@search: (params) -> @search: (params) ->