Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <?php
  2.  
  3. // : Argument 1 passed to App\Controller\ProjectsController::App\Controller\{closure}()
  4. // must be an instance of App\Controller\Query, instance of Cake\ORM\Query given,
  5. // called in D:\xampp\htdocs\cake\ummf\vendor\cakephp\cakephp\src\ORM\Association\BelongsToMany.php
  6. // on line 1257 and defined [APP/Controller\ProjectsController.php, line 58]
  7.  
  8. public function participants($id = null){
  9. $project = $this->Projects->get($id, [
  10. 'contain' => [
  11. 'ProjectRoles' => [
  12. 'Timearts' => [
  13. 'queryBuilder' => function (Query $q) { // Line 58
  14. return $q->order(['Timearts.id' => 'asc']);
  15. },
  16. ]
  17. ],
  18. 'ProjectRoles.Users'
  19. ]
  20. ]);
  21. $timearts_table = TableRegistry::get('Timearts');
  22. $timearts =
  23. $timearts_table
  24. ->find('list')
  25. ->where(['billable =' => 1])
  26. ->order(['id' => 'asc']);
  27.  
  28. $this->set(compact('timearts'));
  29. $this->set('project', $project);
  30. $this->set('_serialize', ['project']);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement