protected function updateConditions(array $conditions, $table, $alias) {
		$res = [];

		foreach($conditions as $k=>$v) {
			if(is_array($v))
				$v = $this->updateConditions($v, $table, $alias);
			else
				$v = preg_replace('/(?<![\.a-zA-Z0-9-_`\(\)])'.$table.'\./', $alias.'.', $v);
			$k = preg_replace('/(?<![\.a-zA-Z0-9-_`\(\)])'.$table.'\./', $alias.'.', $k);
			$res[$k] = $v;
		}

		return $res;
	}
protected function updateConditions(array $conditions, $table, $alias) {
		$res = [];

		foreach($conditions as $k=>$v) {
			if(is_array($v))
				$v = $this->updateConditions($v, $table, $alias);
			else
				$v = preg_replace('/(?<![\.a-zA-Z0-9-_`\(\)])'.$table.'\./', $alias.'.', $v);
			$k = preg_replace('/(?<![\.a-zA-Z0-9-_`\(\)])'.$table.'\./', $alias.'.', $k);
			$res[$k] = $v;
		}

		return $res;
	}
protected function updateConditions ( array $ conditions , $ table , $ alias ) { $ res = [ ] ; foreach ( $ conditions as $ k => $ v ) { if ( is_array ( $ v ) ) $ v = $ this -> updateConditions ( $ v , $ table , $ alias ) ; else $ v = preg_replace ( '/(?<![\.a-zA-Z0-9-_`\(\)])' . $ table . '\./' , $ alias . '.' , $ v ) ; $ k = preg_replace ( '/(?<![\.a-zA-Z0-9-_`\(\)])' . $ table . '\./' , $ alias . '.' , $ k ) ; $ res [ $ k ] = $ v ; } return $ res ; }
Replace the old table with the new alias.
@param  array  $conditions
@return array
Replace the old table with the new alias .