| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 2 | public function countEntitiesRows() |
|
| 29 | { |
||
| 30 | 2 | $records = $this->entities; |
|
| 31 | 2 | foreach ($records as $entity => $detail) { |
|
| 32 | 2 | $qb = $this->em; |
|
| 33 | 2 | $numrows = $qb->createQueryBuilder() |
|
| 34 | 2 | ->select('count(table.id)') |
|
| 35 | 2 | ->from($entity, 'table') |
|
| 36 | 2 | ->getQuery() |
|
| 37 | 2 | ->getSingleScalarResult(); |
|
| 38 | 2 | $this->entities[$entity]['rows'] = $numrows; |
|
| 39 | } |
||
| 52 |