Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // : Argument 1 passed to App\Controller\ProjectsController::App\Controller\{closure}()
- // must be an instance of App\Controller\Query, instance of Cake\ORM\Query given,
- // called in D:\xampp\htdocs\cake\ummf\vendor\cakephp\cakephp\src\ORM\Association\BelongsToMany.php
- // on line 1257 and defined [APP/Controller\ProjectsController.php, line 58]
- public function participants($id = null){
- $project = $this->Projects->get($id, [
- 'contain' => [
- 'ProjectRoles' => [
- 'Timearts' => [
- 'queryBuilder' => function (Query $q) { // Line 58
- return $q->order(['Timearts.id' => 'asc']);
- },
- ]
- ],
- 'ProjectRoles.Users'
- ]
- ]);
- $timearts_table = TableRegistry::get('Timearts');
- $timearts =
- $timearts_table
- ->find('list')
- ->where(['billable =' => 1])
- ->order(['id' => 'asc']);
- $this->set(compact('timearts'));
- $this->set('project', $project);
- $this->set('_serialize', ['project']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement