public function select($query, $params = [], $type = null) {

		$type = $type === null ? $this -> getEntityNamespace($this -> getTable()) : $type;

		if(null === $this -> getAdapter()) {
			return trigger_error(sprintf('No database adapter was set in "%s"', __METHOD__), E_USER_ERROR);
		}
		
		return new ResultSet($this -> getAdapter() -> query($query, $params) -> toArray(), $type, $this -> getAdapter());
	}
public function select($query, $params = [], $type = null) {

		$type = $type === null ? $this -> getEntityNamespace($this -> getTable()) : $type;

		if(null === $this -> getAdapter()) {
			return trigger_error(sprintf('No database adapter was set in "%s"', __METHOD__), E_USER_ERROR);
		}
		
		return new ResultSet($this -> getAdapter() -> query($query, $params) -> toArray(), $type, $this -> getAdapter());
	}
public function select ( $ query , $ params = [ ] , $ type = null ) { $ type = $ type === null ? $ this -> getEntityNamespace ( $ this -> getTable ( ) ) : $ type ; if ( null === $ this -> getAdapter ( ) ) { return trigger_error ( sprintf ( 'No database adapter was set in "%s"' , __METHOD__ ) , E_USER_ERROR ) ; } return new ResultSet ( $ this -> getAdapter ( ) -> query ( $ query , $ params ) -> toArray ( ) , $ type , $ this -> getAdapter ( ) ) ; }
Execute select statement and returns a ResultSet
@param string $query
@param array $params
@param boolean $toEntity
@return sFire\Adapter\MySQL\ResultSet
Execute select statement and returns a ResultSet