Created
September 2, 2014 06:32
-
-
Save nixon1333/a1ffeb685806827a8b99 to your computer and use it in GitHub Desktop.
phalcon - model join query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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