| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | protected function getAllIdsForOwnerQuery(User $user): string |
||
| 51 | { |
||
| 52 | $qb = $this->getEntityManager()->getConnection()->createQueryBuilder() |
||
| 53 | ->select('id') |
||
| 54 | ->from($this->getClassMetadata()->getTableName()) |
||
| 55 | ->andWhere('owner_id = ' . $user->getId()); |
||
| 56 | |||
| 57 | return $qb->getSQL(); |
||
| 58 | } |
||
| 60 |