| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 12 | public function findOpzioniTabella(string $tabella): array |
|
| 16 | { |
||
| 17 | 12 | $em = $this->getEntityManager(); |
|
| 18 | /* @var $qb \Doctrine\ORM\QueryBuilder */ |
||
| 19 | 12 | $qb = $em->createQueryBuilder(); |
|
| 20 | 12 | $qb->select(array('t')); |
|
| 21 | 12 | $qb->from(Opzionitabelle::class, 't'); |
|
| 22 | 12 | $qb->where("(t.nometabella = '*' OR t.nometabella = :tabella)"); |
|
| 23 | 12 | $qb->setParameter('tabella', $tabella); |
|
| 24 | //$opzioni = $qb->getQuery()->useQueryCache(true)->useResultCache(true, null, 'Opzionitabella')->getResult(); |
||
| 25 | 12 | $opzioni = $qb->getQuery()->getResult(); |
|
| 26 | |||
| 27 | 12 | return $opzioni; |
|
| 28 | } |
||
| 30 |