public function select()
    {
        $query     = 'SELECT ' . $this->getQueryFields() . ' FROM ' . $this->getTable() . ' ' . $this->getQueryWhere() . ' ' . $this->getQueryOrderBy() . ' ' . $this->getQueryLimit();
        $statement = $this->db->prepare($query);
        $statement->execute($this->binds);

        $this->clear();

        $collection = array();

        while (false !== ($row = $statement->fetchObject())) {
            $collection[] = $this->newDataInstance($row, true);
        }

        return $collection;
    }
public function select()
    {
        $query     = 'SELECT ' . $this->getQueryFields() . ' FROM ' . $this->getTable() . ' ' . $this->getQueryWhere() . ' ' . $this->getQueryOrderBy() . ' ' . $this->getQueryLimit();
        $statement = $this->db->prepare($query);
        $statement->execute($this->binds);

        $this->clear();

        $collection = array();

        while (false !== ($row = $statement->fetchObject())) {
            $collection[] = $this->newDataInstance($row, true);
        }

        return $collection;
    }
public function select ( ) { $ query = 'SELECT ' . $ this -> getQueryFields ( ) . ' FROM ' . $ this -> getTable ( ) . ' ' . $ this -> getQueryWhere ( ) . ' ' . $ this -> getQueryOrderBy ( ) . ' ' . $ this -> getQueryLimit ( ) ; $ statement = $ this -> db -> prepare ( $ query ) ; $ statement -> execute ( $ this -> binds ) ; $ this -> clear ( ) ; $ collection = array ( ) ; while ( false !== ( $ row = $ statement -> fetchObject ( ) ) ) { $ collection [ ] = $ this -> newDataInstance ( $ row , true ) ; } return $ collection ; }
Select all rows corresponding of where clause.

@return DataAbstract[] List of row.
Select all rows corresponding of where clause .