Skip to content

Instantly share code, notes, and snippets.

@jparbros
Created July 16, 2011 23:24
Show Gist options
  • Save jparbros/1086912 to your computer and use it in GitHub Desktop.
Save jparbros/1086912 to your computer and use it in GitHub Desktop.
$options['joins'] = array(
array('table' => 'books_tags',
'alias' => 'BooksTag',
'type' => 'inner',
'conditions' => array(
'Books.id = BooksTag.books_id' )),
array('table' => 'tags',
'alias' => 'Tag',
'type' => 'inner',
'conditions' => array(
'BooksTag.tag_id = Tag.id')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment