Skip to content

Instantly share code, notes, and snippets.

@nixon1333
Created September 2, 2014 06:32
Show Gist options
  • Save nixon1333/a1ffeb685806827a8b99 to your computer and use it in GitHub Desktop.
Save nixon1333/a1ffeb685806827a8b99 to your computer and use it in GitHub Desktop.
phalcon - model join query
$robots = Category::query()
->columns(array('Category.id', 'Category.cate_name', 'Tags.tag_name'))
->join('Tags', 'Category.id = Tags.tag_ref_id')
->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment