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