src/Table.php
public function rawSelect(Query $query, $join = 'all')
        {
            if (!$query instanceof Query) {
                $query = new Query($this);
            }

            $query->setupJoinTables($join);
            $query->generateSelectSQL();

            $resultset = Statement::getPreparedStatement($query)->execute();
            return ($resultset->count()) ? $resultset : null;
        }
public function rawSelect(Query $query, $join = 'all')
        {
            if (!$query instanceof Query) {
                $query = new Query($this);
            }

            $query->setupJoinTables($join);
            $query->generateSelectSQL();

            $resultset = Statement::getPreparedStatement($query)->execute();
            return ($resultset->count()) ? $resultset : null;
        }
public function rawSelect ( Query $ query , $ join = 'all' ) { if ( ! $ query instanceof Query ) { $ query = new Query ( $ this ) ; } $ query -> setupJoinTables ( $ join ) ; $ query -> generateSelectSQL ( ) ; $ resultset = Statement :: getPreparedStatement ( $ query ) -> execute ( ) ; return ( $ resultset -> count ( ) ) ? $ resultset : null ; }
Selects rows based on given criteria

@param Query $query

@param string $join
@return Resultset
Selects rows based on given criteria