Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | protected function getSortedQueryResult(string $class, string $field): array |
||
12 | { |
||
13 | $sorting = $this->getSorting($field); |
||
14 | $qb = _types()->createFilteredQueryBuilder($class, [], $sorting); |
||
15 | |||
16 | $result = []; |
||
17 | foreach ($qb->getQuery()->getResult() as $item) { |
||
18 | $result[] = $item->getId(); |
||
19 | } |
||
20 | |||
21 | return $result; |
||
22 | } |
||
38 |