Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
23 | public function buildForEntity(string $entityClassName) |
||
24 | { |
||
25 | $this->repo = new BaseRepository( |
||
|
|||
26 | $this->manager, |
||
27 | $this->manager->getClassMetadata($entityClassName) |
||
28 | ); |
||
29 | |||
30 | $this->repo->setRequest($this->stack->getCurrentRequest()); |
||
31 | |||
32 | $this->query = $this->repo |
||
33 | ->getQueryBuilderFactory() |
||
34 | ->filter() |
||
35 | ->sort() |
||
36 | ->getQueryBuilder() |
||
37 | ->getQuery(); |
||
38 | } |
||
50 |