lib/eMapper/ORM/Dynamic/Statement.php
protected function saveStatement($query, ClassProfile $entity, $asList = true) {
		//fetched columns depend on the entity used
		//setting a result map avoids getting imcomplete results
		$config = array_merge(['map.result' => $this->entity, 'map.type' => $asList ? $this->buildListExpression($entity) : $this->buildExpression($entity)], $this->config);
		$this->statement = new SQLStatement($query, $config);
	}
protected function saveStatement($query, ClassProfile $entity, $asList = true) {
		//fetched columns depend on the entity used
		//setting a result map avoids getting imcomplete results
		$config = array_merge(['map.result' => $this->entity, 'map.type' => $asList ? $this->buildListExpression($entity) : $this->buildExpression($entity)], $this->config);
		$this->statement = new SQLStatement($query, $config);
	}
protected function saveStatement ( $ query , ClassProfile $ entity , $ asList = true ) { //fetched columns depend on the entity used //setting a result map avoids getting imcomplete results $ config = array_merge ( [ 'map.result' => $ this -> entity , 'map.type' => $ asList ? $ this -> buildListExpression ( $ entity ) : $ this -> buildExpression ( $ entity ) ] , $ this -> config ) ; $ this -> statement = new SQLStatement ( $ query , $ config ) ; }
Stores a new Statement instance with the given configuration
@param string $query
@param \eMapper\Reflection\ClassProfile $entity
@param string $asList
Stores a new Statement instance with the given configuration