| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function buildForEntity(string $entityClassName) |
||
| 31 | { |
||
| 32 | if (!$this->repo) { |
||
| 33 | $this->repo = new BaseRepository( |
||
| 34 | $this->manager, |
||
| 35 | $this->manager->getClassMetadata($entityClassName) |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->repo->setRequest($this->stack->getCurrentRequest()); |
||
| 40 | |||
| 41 | $this->query = $this->repo |
||
|
|
|||
| 42 | ->getQueryBuilderFactory() |
||
| 43 | ->filter() |
||
| 44 | ->sort() |
||
| 45 | ->getQueryBuilder() |
||
| 46 | ->getQuery(); |
||
| 47 | } |
||
| 59 |