Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to sort fields of a related (joined) table in query results?
  2. Project:
  3.   columns:
  4.     name: { type: string(255), notnull: true }
  5.   relations:
  6.     Task:
  7.       local: id
  8.       foreign: project_id
  9.       orderBy: name
  10.  
  11. Task:
  12.   columns:
  13.     project_id: { type: integer, notnull: true }
  14.     name: { type: string(255), notnull: true }