* get reports for user * @param $userId * @return array * @throws Exception */
($userId)
| 78 | * @throws Exception |
| 79 | */ |
| 80 | public function indexByUser($userId) |
| 81 | { |
| 82 | $sql = $this->db->getQueryBuilder(); |
| 83 | $sql->from(self::TABLE_NAME) |
| 84 | ->select('id') |
| 85 | ->where($sql->expr()->eq('user_id', $sql->createNamedParameter($userId))); |
| 86 | $statement = $sql->executeQuery(); |
| 87 | $result = $statement->fetchAll(); |
| 88 | $statement->closeCursor(); |
| 89 | return $result; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * create report |
no outgoing calls
no test coverage detected