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);
	}