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