diff --git a/lib/Db/SessionMapper.php b/lib/Db/SessionMapper.php index c5ad44391f7..1f7c896eb07 100644 --- a/lib/Db/SessionMapper.php +++ b/lib/Db/SessionMapper.php @@ -64,8 +64,7 @@ public function findAll($documentId) { $qb = $this->db->getQueryBuilder(); $qb->select('id', 'color', 'document_id', 'last_contact', 'user_id', 'guest_name') ->from($this->getTableName()) - ->where($qb->expr()->eq('document_id', $qb->createNamedParameter($documentId))) - ->execute(); + ->where($qb->expr()->eq('document_id', $qb->createNamedParameter($documentId))); return $this->findEntities($qb); } @@ -75,8 +74,7 @@ public function findAllActive($documentId) { $qb->select('id', 'color', 'document_id', 'last_contact', 'user_id', 'guest_name') ->from($this->getTableName()) ->where($qb->expr()->eq('document_id', $qb->createNamedParameter($documentId))) - ->andWhere($qb->expr()->gt('last_contact', $qb->createNamedParameter(time() - SessionService::SESSION_VALID_TIME))) - ->execute(); + ->andWhere($qb->expr()->gt('last_contact', $qb->createNamedParameter(time() - SessionService::SESSION_VALID_TIME))); return $this->findEntities($qb); } @@ -85,8 +83,7 @@ public function findAllInactive() { $qb = $this->db->getQueryBuilder(); $qb->select('id', 'color', 'document_id', 'last_contact', 'user_id', 'guest_name') ->from($this->getTableName()) - ->where($qb->expr()->lt('last_contact', $qb->createNamedParameter(time() - SessionService::SESSION_VALID_TIME))) - ->execute(); + ->where($qb->expr()->lt('last_contact', $qb->createNamedParameter(time() - SessionService::SESSION_VALID_TIME))); return $this->findEntities($qb); } diff --git a/lib/Db/StepMapper.php b/lib/Db/StepMapper.php index a977c1629b5..472f281833b 100644 --- a/lib/Db/StepMapper.php +++ b/lib/Db/StepMapper.php @@ -46,8 +46,7 @@ public function find($documentId, $fromVersion, $lastAckedVersion = null) { $qb ->setMaxResults(100) ->orderBy('version') - ->orderBy('id') - ->execute(); + ->orderBy('id'); return $this->findEntities($qb); }