Cambios en mi cuenta v1-actualizacion

parent bca3d76d
...@@ -46,9 +46,11 @@ class McafeeMigrarUsuariosCommand extends ContainerAwareCommand { ...@@ -46,9 +46,11 @@ class McafeeMigrarUsuariosCommand extends ContainerAwareCommand {
$ultimoIndiceUsuarioProcesado = McafeeTransaccionPendienteQuery::create() $ultimoIndiceUsuarioProcesado = McafeeTransaccionPendienteQuery::create()
->orderByMtpId("DESC") ->orderByMtpId("DESC")
->findOne(); ->findOne();
if($ultimoIndiceUsuarioProcesado == null) $ultimoIndiceUsuarioProcesado = 0;
$log->debug("ultimo indice procesado $ultimoIndiceUsuarioProcesado");
$log->debug("obteniendo usuarios candidatos a migrar..."); $log->debug("obteniendo usuarios candidatos a migrar...");
$usuariosAMigrar = UsuariosMcafeeMovistarMigrarQuery::create() $usuariosAMigrar = UsuariosMcafeeMovistarMigrarQuery::create()
->where('usuarios_mcafee_movistar_migrar.id > ?', $ultimoIndiceUsuarioProcesado) ->where("usuarios_mcafee_movistar_migrar.id > $ultimoIndiceUsuarioProcesado")
->limit($usuariosMax) ->limit($usuariosMax)
->find(); ->find();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment