:since'; } $query .= ' LIMIT 5000'; $stmt = Database::getConnection('read')->prepare($query); $stmt->bindValue(':build', $buildId, \PDO::PARAM_INT); if (!is_null($since)) { $stmt->bindValue(':since', $since); } if ($stmt->execute()) { $res = $stmt->fetchAll(\PDO::FETCH_ASSOC); $map = function ($item) { return new BuildError($item); }; $rtn = array_map($map, $res); return $rtn; } else { return array(); } } }