private function executeUpdate($table, $field)
    {
        $result = $this->em->getConnection()->executeUpdate($this->getReplaceQuery($table, $field));        
        $this->output->writeln(sprintf(' - %d rows updated in `%s`.', $result, $table));

        return $this;
    }
private function executeUpdate($table, $field)
    {
        $result = $this->em->getConnection()->executeUpdate($this->getReplaceQuery($table, $field));        
        $this->output->writeln(sprintf(' - %d rows updated in `%s`.', $result, $table));

        return $this;
    }
private function executeUpdate ( $ table , $ field ) { $ result = $ this -> em -> getConnection ( ) -> executeUpdate ( $ this -> getReplaceQuery ( $ table , $ field ) ) ; $ this -> output -> writeln ( sprintf ( ' - %d rows updated in `%s`.' , $ result , $ table ) ) ; return $ this ; }
Executes an update query and output the number of affected rows.

@param  string   $table      The table to update
@param  string   $field      The field to update

@return UpgradeToShortClassnameCommand
Executes an update query and output the number of affected rows .