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