| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function loadAll() |
||
| 30 | { |
||
| 31 | $query = (new QueryBuilder()) |
||
| 32 | ->select('ug.identifier AS v0', 'pc.identifier AS v1') |
||
| 33 | ->from('user_groups_page_categories', 'ugpc') |
||
| 34 | ->innerJoin('page_categories', 'pc', 'ugpc.page_category_id = pc.id AND pc.deleted = 0') |
||
| 35 | ->innerJoin('user_groups', 'ug', 'ugpc.user_group_id = ug.id AND ug.deleted = 0') |
||
| 36 | ; |
||
| 37 | |||
| 38 | $connection = $this->connectionPool->getReadConnection(); |
||
| 39 | $statement = $connection->prepare($query->getSql()); |
||
| 40 | $statement->bindValues($query->getParameters()); |
||
| 41 | if (!$statement->execute()) { |
||
| 42 | return true; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $statement->fetchAll(\PDO::FETCH_ASSOC); |
||
| 46 | } |
||
| 48 |