public function getAll()
    {
        $query = $this->createQuery();
        $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 getAll()
    {
        $query = $this->createQuery();
        $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 getAll ( ) { $ query = $ this -> createQuery ( ) ; $ 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 for this model type.

@return \Parable\ORM\Model[]|\Parable\ORM\Model
Returns all rows for this model type .