private function renameSetFields(Query $query, $columnNames, $originalSource, $newSource) {
        $renamedFields = [];
        foreach ($query->getFields() as $field => $value) {
            $newName = $this->getFieldNewName($field, $columnNames, $originalSource, $newSource);
            if($newName != null) {
                $renamedFields[$newName] = $value;
            }
        }
        $query->fields($renamedFields);
    }
private function renameSetFields(Query $query, $columnNames, $originalSource, $newSource) {
        $renamedFields = [];
        foreach ($query->getFields() as $field => $value) {
            $newName = $this->getFieldNewName($field, $columnNames, $originalSource, $newSource);
            if($newName != null) {
                $renamedFields[$newName] = $value;
            }
        }
        $query->fields($renamedFields);
    }
private function renameSetFields ( Query $ query , $ columnNames , $ originalSource , $ newSource ) { $ renamedFields = [ ] ; foreach ( $ query -> getFields ( ) as $ field => $ value ) { $ newName = $ this -> getFieldNewName ( $ field , $ columnNames , $ originalSource , $ newSource ) ; if ( $ newName != null ) { $ renamedFields [ $ newName ] = $ value ; } } $ query -> fields ( $ renamedFields ) ; }
Renombra los campos set de la sentencia update
@param Query $query
@param $columnNames
@param $originalSource
@param $newSource
Renombra los campos set de la sentencia update