Commit 263b62cc51d8c4b9d4192ac585a1b8a65fc0933f

Authored by Alex Savenko
1 parent 67c81060

test

Showing 1 changed file with 0 additions and 16 deletions   Show diff stats
app/library/App/Controllers/ProjectController.php
@@ -29,7 +29,6 @@ class ProjectController extends CrudResourceController { @@ -29,7 +29,6 @@ class ProjectController extends CrudResourceController {
29 29
30 30
31 $item = $this->getFindData($id); 31 $item = $this->getFindData($id);
32 - return $this->getModelPrimaryKey();  
33 32
34 return 'breakpoint'; 33 return 'breakpoint';
35 if (!$item) { 34 if (!$item) {
@@ -45,21 +44,6 @@ class ProjectController extends CrudResourceController { @@ -45,21 +44,6 @@ class ProjectController extends CrudResourceController {
45 return '123'; 44 return '123';
46 } 45 }
47 46
48 - protected function getFindData($id)  
49 - {  
50 - $phqlBuilder = $this->phqlQueryParser->fromQuery($this->query, $this->getResource());  
51 -  
52 - $phqlBuilder  
53 - ->andWhere('[' . $this->getResource()->getModel() . '].' . 'id = '.$id);  
54 -  
55 - $this->modifyReadQuery($phqlBuilder);  
56 - $this->modifyFindQuery($phqlBuilder, $id);  
57 -  
58 - $results = $phqlBuilder->getQuery()->execute();  
59 -  
60 - return count($results) >= 1 ? $results->getFirst() : null;  
61 - }  
62 -  
63 protected function getModelPrimaryKey() 47 protected function getModelPrimaryKey()
64 { 48 {
65 return 'id'; 49 return 'id';