Skip to content

Instantly share code, notes, and snippets.

@jmather
Created March 19, 2011 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmather/877496 to your computer and use it in GitHub Desktop.
Save jmather/877496 to your computer and use it in GitHub Desktop.
How to do a double-ref
User:
columns:
name: { type: string(255), notnull: true }
Post:
columns:
content: { type: clob }
author_id: { type: integer }
editor_id: { type: integer }
relations:
Author:
class: User
local: author_id
Editor:
class: User
local: editor_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment