Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $options = array('conditions'=>$final,'order'=>$order,'group'=>array('Project.id'),'joins'=>array(
- array(
- 'table'=>'project_categories',
- 'alias'=>'ProjectCategory',
- 'type' => 'LEFT',
- 'conditions'=>array('ProjectCategory.project_id = Project.id')
- ),
- array(
- 'table'=>'categories',
- 'alias'=>'Category',
- 'type' => 'LEFT',
- 'conditions'=>array('ProjectCategory.category_id = Category.id')
- ),
- ));
- $this->paginate = $options;
- $projects = $this->paginate("Project");
Add Comment
Please, Sign In to add comment