*/ class ExAppDeployOptionsMapper extends QBMapper { public function __construct(IDBConnection $db) { parent::__construct($db, 'ex_deploy_options'); } /** * @throws Exception */ public function findAll(): array { $qb = $this->db->getQueryBuilder(); $result = $qb->select('exs.*') ->from($this->tableName, 'exs') ->executeQuery(); return $result->fetchAll(); } /** * @throws Exception */ public function removeAllByAppId(string $appId): int { $qb = $this->db->getQueryBuilder(); $qb->delete($this->tableName) ->where( $qb->expr()->eq('appid', $qb->createNamedParameter($appId, IQueryBuilder::PARAM_STR)) ); return $qb->executeStatement(); } }