didit-tech/FastLegS — Issue #27: Conflict between "only" and "include"
Author: toots
Created: 2011-12-11 03:45:35+00:00
State: open

(Example in coffeescript)

Stream = FastLegS.Base.extend
tableName : "streams"
primaryKey : "id"

Radio = FastLegS.Base.extend
tableName :"radios"
primaryKey : "id"
many : [
streams : Stream
joinOn : "radio_id"
]

Radio.find param, {
order : [ "name" ]
only : [ "id", "name", "title", "genre", "description"]
include : {
streams : {
only : [ "format", "url", "msg" ]
}
}
}, (err, radio) -> (...)

If I remove `"id"` from `only` then `streams` is empty..