lib/eMapper/Fluent/Query/FluentSelect.php
public function fetch($mappingType = null) {
		list($query, $args) = $this->build();

		//generate a mapper instance
		if (is_null($mappingType))
			$mapper = empty($this->config) ? $this->fluent->getMapper() : $this->fluent->getMapper()->merge($this->config);
		else {
			$config = empty($this->config) ? ['map.type' => $mappingType] : array_merge($this->config, ['map.type' => $mappingType]);
			$mapper = $this->fluent->getMapper()->merge($config);
		}
		
		return empty($args) ? $mapper->query($query) : $mapper->execute($query, $args);
	}
public function fetch($mappingType = null) {
		list($query, $args) = $this->build();

		//generate a mapper instance
		if (is_null($mappingType))
			$mapper = empty($this->config) ? $this->fluent->getMapper() : $this->fluent->getMapper()->merge($this->config);
		else {
			$config = empty($this->config) ? ['map.type' => $mappingType] : array_merge($this->config, ['map.type' => $mappingType]);
			$mapper = $this->fluent->getMapper()->merge($config);
		}
		
		return empty($args) ? $mapper->query($query) : $mapper->execute($query, $args);
	}
public function fetch ( $ mappingType = null ) { list ( $ query , $ args ) = $ this -> build ( ) ; //generate a mapper instance if ( is_null ( $ mappingType ) ) $ mapper = empty ( $ this -> config ) ? $ this -> fluent -> getMapper ( ) : $ this -> fluent -> getMapper ( ) -> merge ( $ this -> config ) ; else { $ config = empty ( $ this -> config ) ? [ 'map.type' => $ mappingType ] : array_merge ( $ this -> config , [ 'map.type' => $ mappingType ] ) ; $ mapper = $ this -> fluent -> getMapper ( ) -> merge ( $ config ) ; } return empty ( $ args ) ? $ mapper -> query ( $ query ) : $ mapper -> execute ( $ query , $ args ) ; }
Fetchs the current query with an optional mapping type
@param string $mappingType
@return mixed
Fetchs the current query with an optional mapping type