Ejemplo n.º 1
0
 /**
  * @param TokenSequencerInterface $query
  * @param array $options
  * @return array|object
  *
  */
 protected function doQuery(TokenSequencerInterface $query, array $options = ["output" => "applyModel"])
 {
     // normalise output option
     if (!isset($options["output"]) || !in_array($options["output"], ["raw", "normalise"])) {
         $options["output"] = "applyModel";
     }
     // add the entity class if required
     if ($options["output"] != "raw" && empty($options["entityClass"])) {
         $options["entityClass"] = $this->getEntityName();
     }
     $query->resetSequence();
     return $this->storage->query($query, $options);
 }