original_string: public function getByConditionSets(array $conditionSets)
      {
          $query = $this->createQuery();
          $query->whereMany($conditionSets);
          $result = $this->database->query($query);
  
          $entities = [];
          if ($result) {
              $result = $result->fetchAll(\PDO::FETCH_ASSOC);
              $entities = $this->handleResult($result);
          }
          if ($this->returnOne && is_array($entities)) {
              return current($entities);
          }
          return $entities;
      }
code: public function getByConditionSets(array $conditionSets)
      {
          $query = $this->createQuery();
          $query->whereMany($conditionSets);
          $result = $this->database->query($query);
  
          $entities = [];
          if ($result) {
              $result = $result->fetchAll(\PDO::FETCH_ASSOC);
              $entities = $this->handleResult($result);
          }
          if ($this->returnOne && is_array($entities)) {
              return current($entities);
          }
          return $entities;
      }
code_tokens: public function getByConditionSets ( array $ conditionSets ) { $ query = $ this -> createQuery ( ) ; $ query -> whereMany ( $ conditionSets ) ; $ result = $ this -> database -> query ( $ query ) ; $ entities = [ ] ; if ( $ result ) { $ result = $ result -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; $ entities = $ this -> handleResult ( $ result ) ; } if ( $ this -> returnOne && is_array ( $ entities ) ) { return current ( $ entities ) ; } return $ entities ; }
docstring: Returns all rows matching all conditions passed.
  
  @param array $conditionSets
  
  @return \Parable\ORM\Model[]|\Parable\ORM\Model
docstring_tokens: Returns all rows matching all conditions passed .