MCPcopy Create free account
hub / github.com/Rello/analytics / indexByUser

Method indexByUser

lib/Db/ReportMapper.php:80–90  ·  view source on GitHub ↗

* get reports for user * @param $userId * @return array * @throws Exception */

($userId)

Source from the content-addressed store, hash-verified

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

Callers 3

deleteByUserMethod · 0.45
deleteByUserMethod · 0.45
deleteByUserMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected