Skip to content

Loading…

Conflict between "only" and "include" #27

Open
toots opened this Issue · 0 comments

1 participant

@toots

(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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.