/** * Returns total count and data for all Locations satisfying the parameters. * * @param \eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion * @param int $offset * @param int|null $limit * @param \eZ\Publish\API\Repository\Values\Content\Query\SortClause[] $sortClauses * * @return mixed[][] */ public function find(Criterion $criterion, $offset = 0, $limit = null, array $sortClauses = null) { try { return $this->innerGateway->find($criterion, $offset, $limit, $sortClauses); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }