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;
    }
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;
    }
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 ; }
Returns all rows matching all conditions passed.

@param array $conditionSets

@return \Parable\ORM\Model[]|\Parable\ORM\Model
Returns all rows matching all conditions passed .