/** * Executes the query against the database and returns the result * * @return array<object> The query result as an array of objects * @api */ public function execute() { $rows = $this->persistenceManager->getObjectDataByQuery($this); if ($this->getQuerySettings()->getReturnRawQueryResult() === TRUE) { return $rows; } else { return $this->dataMapper->map($this->getType(), $rows); } }