public function replaceTable($oldTable, $newTable) {
		$this->where = $this->replaceTableInConditions($this->where, $oldTable, $newTable);
		$this->joins = $this->replaceTableInConditions($this->joins, $oldTable, $newTable);
		#using regex to replace table names not preceded by one of the following character
		if($this->groupBy)
			$this->groupBy[0] = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $this->groupBy[0]);
	}
public function replaceTable($oldTable, $newTable) {
		$this->where = $this->replaceTableInConditions($this->where, $oldTable, $newTable);
		$this->joins = $this->replaceTableInConditions($this->joins, $oldTable, $newTable);
		#using regex to replace table names not preceded by one of the following character
		if($this->groupBy)
			$this->groupBy[0] = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $this->groupBy[0]);
	}
public function replaceTable ( $ oldTable , $ newTable ) { $ this -> where = $ this -> replaceTableInConditions ( $ this -> where , $ oldTable , $ newTable ) ; $ this -> joins = $ this -> replaceTableInConditions ( $ this -> joins , $ oldTable , $ newTable ) ; #using regex to replace table names not preceded by one of the following character
 if ( $ this -> groupBy ) $ this -> groupBy [ 0 ] = preg_replace ( '/(?<![a-zA-Z0-9_])' . $ oldTable . '\./' , $ newTable . '.' , $ this -> groupBy [ 0 ] ) ; }
Replace an alias with a new one in the conditions, jointures and group by.
@param string $oldTable
@param string $newTable
@api
Replace an alias with a new one in the conditions jointures and group by .