diff --git a/lib/Tools/Db/ExtendedQueryBuilder.php b/lib/Tools/Db/ExtendedQueryBuilder.php index 4dbd4d05..3e7d16d1 100644 --- a/lib/Tools/Db/ExtendedQueryBuilder.php +++ b/lib/Tools/Db/ExtendedQueryBuilder.php @@ -1004,7 +1004,7 @@ private function parseSimpleSelectSql( * @throws RowNotFoundException */ public function getRow(callable $method, string $object = '', array $params = []): IQueryRow { - $cursor = $this->execute(); + $cursor = $this->executeQuery(); $data = $cursor->fetch(); $cursor->closeCursor(); @@ -1025,7 +1025,7 @@ public function getRow(callable $method, string $object = '', array $params = [] */ public function getRows(callable $method, string $object = '', array $params = []): array { $rows = []; - $cursor = $this->execute(); + $cursor = $this->executeQuery(); while ($data = $cursor->fetch()) { try { $rows[] = $method($data, $this, $object, $params);