Cambios

parent 078dc990
This diff is collapsed.
<div class="row">
<!-- begin col-3 -->
<div class="col-md-3 col-sm-6">
<div class="widget widget-stats bg-red">
<div class="stats-icon stats-icon-lg"><i class="fa fa-download fa-fw"></i></div>
<div class="stats-title">% Descargas/Aperturas</div>
<div class="stats-number">{{totalAperturaDescargaPor}}%</div>
<div class="stats-progress progress">
<div class="progress-bar" style="width: {{totalAperturaDescargaPor}}%;"></div>
</div>
<div class="stats-desc"></div>
</div>
</div>
<!-- end col-3 -->
<!-- begin col-3 -->
<div class="col-md-3 col-sm-6">
<div class="widget widget-stats bg-green">
<div class="stats-icon stats-icon-lg"><i class="fa fa-upload fa-fw"></i></div>
<div class="stats-title">Total Despachados</div>
<div class="stats-number">{{totalCargado}}</div>
<div class="stats-progress progress">
<div class="progress-bar" style="width: {{totalCargadoPor}}%;"></div>
</div>
<div class="stats-desc">{{totalCargadoPor}}%</div>
</div>
</div>
<!-- end col-3 -->
<!-- begin col-3 -->
<div class="col-md-3 col-sm-6">
<div class="widget widget-stats bg-blue">
<div class="stats-icon stats-icon-lg"><i class="fa fa-globe fa-fw"></i></div>
<div class="stats-title">Total Aperturas</div>
<div class="stats-number">{{totalApertura}}<a href="{{path('backend_home_exportar_aperturas',{procedencia:'sms'})}}" class="btn btn-success btn-sm m-r-5 right-content"><i class="fa fa-file-excel-o"></i> Exportar</a></div>
<div class="stats-progress progress">
<div class="progress-bar" style="width: {{totalAperturaPor}}%;"></div>
</div>
<div class="stats-desc">{{totalAperturaPor}}%</div>
</div>
</div>
<!-- end col-3 -->
<!-- begin col-3 -->
<div class="col-md-3 col-sm-6">
<div class="widget widget-stats bg-purple">
<div class="stats-icon stats-icon-lg"><i class="fa fa-download fa-fw"></i></div>
<div class="stats-title">Total Descargas</div>
<div class="stats-number">{{totalDescarga}} <a href="{{path('backend_home_exportar_descargas',{procedencia:'sms'})}}" class="btn btn-success btn-sm m-r-5 right-content"><i class="fa fa-file-excel-o"></i> Exportar</a></div>
<div class="stats-progress progress">
<div class="progress-bar" style="width: {{totalDescargaPor}}%;"></div>
</div>
<div class="stats-desc">{{totalDescargaPor}}%</div>
</div>
</div>
<!-- end col-3 -->
</div>
<!-- end row -->
<div class="row">
<!-- end col-3 -->
<div class="col-md-3 col-sm-6">
<div class="widget widget-stats bg-black">
<div class="stats-icon stats-icon-lg"><i class="fa fa-envelope fa-fw"></i></div>
<div class="stats-title">Total Usuarios con Movil Válidos</div>
<div class="stats-number">{{totalMovilValidos}}</div>
<div class="stats-progress progress">
{#<div class="progress-bar" style="width: 15%;"></div>#}
</div>
{#<div class="stats-desc">21%</div>#}
</div>
</div>
<!-- begin col-3 -->
<div class="col-md-3 col-sm-6">
<div class="widget widget-stats bg-black">
<div class="stats-icon stats-icon-lg"><i class="fa fa-envelope fa-fw"></i></div>
<div class="stats-title">Desuscritos al sms</div>
<div class="stats-number">{{totalNoPermiteSms}}</div>
<div class="stats-progress progress">
<div class="progress-bar" style="width: {{totalNoPermiteSmsPor}}%;"></div>
</div>
<div class="stats-desc">{{totalNoPermiteSmsPor}}%</div>
</div>
</div>
<!-- end col-3 -->
</div>
\ No newline at end of file
......@@ -30,6 +30,7 @@
<li class="{% if route == 'backend_home_portalcautivo_detalle' %}active{% endif %}"><a href="{{ path('backend_home_portalcautivo_detalle')}}">Portal Cautivo Detalle</a></li>
<li class="{% if route == 'backend_home_portalmigraciones_detalle' %}active{% endif %}"><a href="{{ path('backend_home_portalmigraciones_detalle')}}">Portal Migraciones</a></li>
<li class="{% if route == 'backend_home_dashboard_emailing' %}active{% endif %}"><a href="{{ path('backend_home_dashboard_emailing')}}">Emailing</a></li>
<li class="{% if route == 'backend_home_dashboard_sms' %}active{% endif %}"><a href="{{ path('backend_home_dashboard_sms')}}">Sms</a></li>
<li class="{% if route == 'backend_home_dashboard_emailing_detalle' %}active{% endif %}"><a href="{{ path('backend_home_dashboard_emailing_detalle')}}">Emailing Detalle</a></li>
</ul>
</li>
......
......@@ -55,6 +55,29 @@
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
<table name="batchsms" phpName="Batchsms" idMethod="native">
<column name="batchsms_id" phpName="BatchsmsId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="batchsms_total" phpName="BatchsmsTotal" type="INTEGER" required="false"/>
<column name="batchsms_procesado_ok" phpName="BatchsmsProcesadoOk" type="INTEGER" required="false"/>
<column name="batchsms_procesado_no_ok" phpName="BatchsmsProcesadoNoOk" type="INTEGER" required="false"/>
<column name="batchsms_enviado_ok" phpName="BatchsmsEnviadoOk" type="INTEGER" required="false"/>
<column name="batchsms_enviado_no_ok" phpName="BatchsmsEnviadoNoOk" type="INTEGER" required="false"/>
<column name="batchsms_ya_descargo" phpName="BatchsmsYaDescargo" type="INTEGER" required="false"/>
<column name="batchsms_sin_movil" phpName="BatchsmsSinMovil" type="INTEGER" required="false"/>
<column name="batchsms_descencriptado_ok" phpName="BatchsmsDescencriptadoOk" type="INTEGER" required="false"/>
<column name="batchsms_descencriptado_no_ok" phpName="BatchsmsDescencriptadoNoOk" type="INTEGER" required="false"/>
<column name="batchsms_permitido" phpName="BatchsmsPermitido" type="INTEGER" required="false"/>
<column name="batchsms_no_permitido" phpName="BatchsmsNoPermitido" type="INTEGER" required="false"/>
<column name="batchsms_delivery" phpName="BatchsmsDelivery" type="INTEGER" required="false"/>
<column name="batchsms_bounce" phpName="BatchsmsBounce" type="INTEGER" required="false"/>
<column name="batchsms_complaint" phpName="BatchsmsComplaint" type="INTEGER" required="false"/>
<column name="batchsms_eliminado" phpName="BatchsmsEliminado" type="BOOLEAN" size="1" required="false"/>
<column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="false"/>
<column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="false"/>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
<table name="emailing" phpName="Emailing" idMethod="native">
<column name="ema_id" phpName="EmaId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="ema_total" phpName="EmaTotal" type="INTEGER" required="false"/>
......@@ -170,23 +193,6 @@
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
<table name="mcafee_ultimo_proceso_normalizacion" phpName="McafeeUltimoProcesoNormalizacion" idMethod="native">
<column name="mun_id" phpName="MunId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="ultimo_umc_id" phpName="UltimoUmcId" type="INTEGER" required="false"/>
<column name="mun_cantidad_procesados" phpName="MunCantidadProcesados" type="INTEGER" required="false"/>
<column name="mun_cantidad_pendientes" phpName="MunCantidadPendientes" type="INTEGER" required="false"/>
<column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="false"/>
<column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="false"/>
<foreign-key foreignTable="usuario_mcafee" name="fk_ultimo_umc_id_normla" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="ultimo_umc_id" foreign="umc_id"/>
</foreign-key>
<index name="fk_ultimo_umc_id_normla_idx">
<index-column name="ultimo_umc_id"/>
</index>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
<table name="notificacion_email" phpName="NotificacionEmail" idMethod="native">
<column name="nem_id" phpName="NemId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="eem_id" phpName="EemId" type="INTEGER" required="false"/>
......@@ -230,6 +236,38 @@
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
<table name="sms" phpName="Sms" idMethod="native">
<column name="sms_id" phpName="SmsId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="umc_id" phpName="UmcId" type="INTEGER" required="false"/>
<column name="batchsms_id" phpName="BatchsmsId" type="INTEGER" required="false"/>
<column name="sms_tipo" phpName="SmsTipo" type="SMALLINT" required="false"/>
<column name="sms_movil" phpName="SmsMovil" type="VARCHAR" size="60" required="false"/>
<column name="sms_campana" phpName="SmsCampana" type="VARCHAR" size="20" required="false"/>
<column name="sms_fecha_envio" phpName="SmsFechaEnvio" type="TIMESTAMP" required="false"/>
<column name="sms_fecha_notificacion" phpName="SmsFechaNotificacion" type="TIMESTAMP" required="false"/>
<column name="sms_trans_id_cliente" phpName="SmsTransIdCliente" type="VARCHAR" size="200" required="false"/>
<column name="sms_from_movil" phpName="SmsFromMovil" type="VARCHAR" size="60" required="false"/>
<column name="sms_from_mensaje" phpName="SmsFromMensaje" type="VARCHAR" size="160" required="false"/>
<column name="sms_estado" phpName="SmsEstado" type="SMALLINT" required="false"/>
<column name="sms_eliminado" phpName="SmsEliminado" type="BOOLEAN" size="1" required="false"/>
<column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="false"/>
<column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="false"/>
<foreign-key foreignTable="batchsms" name="fk_batchsms" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="batchsms_id" foreign="batchsms_id"/>
</foreign-key>
<foreign-key foreignTable="usuario_mcafee" name="fk_usuariomcafee_sms" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="umc_id" foreign="umc_id"/>
</foreign-key>
<index name="fk_usuariomcafee_sms">
<index-column name="umc_id"/>
</index>
<index name="fk_batchsms">
<index-column name="batchsms_id"/>
</index>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
<table name="tracking" phpName="Tracking" idMethod="native">
<column name="tra_id" phpName="TraId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="umc_id" phpName="UmcId" type="INTEGER" required="false"/>
......@@ -282,9 +320,9 @@
<column name="umc_permite_email" phpName="UmcPermiteEmail" type="BOOLEAN" size="1" required="false" defaultValue="true"/>
<column name="umc_fecha_desuscripcion_email" phpName="UmcFechaDesuscripcionEmail" type="TIMESTAMP" required="false"/>
<column name="umc_movil" phpName="UmcMovil" type="VARCHAR" size="200" required="false"/>
<column name="umc_fijo" phpName="UmcFijo" type="VARCHAR" size="200" required="false"/>
<column name="umc_customer_id" phpName="UmcCustomerId" type="VARCHAR" size="250" required="false"/>
<column name="umc_eliminado" phpName="UmcEliminado" type="BOOLEAN" size="1" required="false"/>
<column name="umc_permite_sms" phpName="UmcPermiteSms" type="BOOLEAN" size="1" required="true" defaultValue="true"/>
<column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="false"/>
<column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="false"/>
<index name="indice_umc_movistar_any">
......
......@@ -256,6 +256,22 @@ class Estadistica {
return $suma;
}
public function getSmsProcesado() {
$suma = 0;
$sql = 'SELECT sum(batchsms_procesado_ok) as suma FROM batchsms where batchsms_eliminado=0;';
$statement = $this->connection->prepare($sql);
$statement->execute();
while($result = $statement->fetch(\PDO::FETCH_ASSOC)){
$suma = $result['suma'];
}
return $suma;
}
public function getEmailingTotalEmailValidos() {
$suma = 0;
$sql = 'select count(*) as cant from usuario_mcafee where umc_eliminado=0 and (umc_movistar_email is not null or umc_movistar_email<>"");';
......@@ -270,6 +286,22 @@ class Estadistica {
return $suma;
}
public function getSmsTotalMovilValidos() {
$suma = 0;
$sql = 'select count(*) as cant from usuario_mcafee where umc_eliminado=0 and (umc_movil is not null or umc_movil<>"");';
$statement = $this->connection->prepare($sql);
$statement->execute();
while($result = $statement->fetch(\PDO::FETCH_ASSOC)){
$suma = $result['cant'];
}
return $suma;
}
public function getEmailingTotalRebotes() {
$suma = 0;
$sql = 'SELECT count(distinct nem_bounce_recipient_email_address) as cant FROM intelsecuritymovistar.notificacion_email where nem_tipo in ('.NotificacionEmail::NOTIFICACION_BOUNCE.') and nem_eliminado=0; ';
......@@ -284,6 +316,7 @@ class Estadistica {
return $suma;
}
public function getEmailingTotalSpam() {
$suma = 0;
$sql = 'SELECT count(*) as cant FROM intelsecuritymovistar.notificacion_email where nem_tipo in ('.NotificacionEmail::NOTIFICACION_COMPLAINT.') and nem_eliminado=0 ;';
......@@ -305,6 +338,20 @@ class Estadistica {
$statement->execute();
while($result = $statement->fetch(\PDO::FETCH_ASSOC)){
$suma = $result['cant'];
}
return $suma;
}
public function getEmailingTotalNoPermiteSms() {
$suma = 0;
$sql = 'SELECT count(*) as cant from usuario_mcafee where umc_permite_sms=0;';
$statement = $this->connection->prepare($sql);
$statement->execute();
while($result = $statement->fetch(\PDO::FETCH_ASSOC)){
$suma = $result['cant'];
}
......
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseAgenteWebcall;
class AgenteWebcall extends BaseAgenteWebcall
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseAgenteWebcallPeer;
class AgenteWebcallPeer extends BaseAgenteWebcallPeer
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseAgenteWebcallQuery;
class AgenteWebcallQuery extends BaseAgenteWebcallQuery
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseBatchsms;
class Batchsms extends BaseBatchsms
{
const ELIMINADO_TRUE=TRUE;
const ELIMINADO_FALSE=FALSE;
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseBatchsmsPeer;
class BatchsmsPeer extends BaseBatchsmsPeer
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseBatchsmsQuery;
class BatchsmsQuery extends BaseBatchsmsQuery
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseSms;
use Monolog\Logger;
use Symfony\Component\DependencyInjection\Container;
use AppBundle\Lib\Utiles;
class Sms extends BaseSms
{
const ELIMINADO_TRUE=TRUE;
const ELIMINADO_FALSE=FALSE;
const ESTADO_PREENVIO=0;
const ESTADO_ENVIADO=1;
const ESTADO_ENVIADO_NOTIF_OK=2;
const ESTADO_ENVIADO_NO_OK=3;
const ESTADO_ENVIADO_NOTIF_NO_OK_BOUNCE=4;
const ESTADO_ENVIADO_NOTIF_NO_OK_COMPLAINT=5;
const TIPO_MASIVO = 1;
const TIPO_UNITARIO = 2;
public static function enviarSms($url, $movil, UsuarioMcafee $usuarioMcafee, Batchsms $batchsms=null, $campana=0, $mensaje, $tipoSms, $transIdCliente=null, Logger $log, Container $container) {
//$FROM_EMAIL = 'no-reply@seguridadtotalmcafee.cl';
//$FROM_EMAIL = 'fcastro@gearlabs.cl';
$envioEmail = null;
$tag = '[enviarSms]';
$log->debug($tag."entrando... tipoSms:$tipoSms | campana:$campana | movil:$movil | umcId:".$usuarioMcafee->getUmcId());
try{
$log->debug($tag.'generando sms...');
$sms = new Sms();
if($sms != null)
$sms->setBatchsmsId($batchsms->getBatchsmsId());
$sms->setSmsTipo($tipoSms);
$sms->setUsuarioMcafee($usuarioMcafee);
$sms->setSmsEstado(EnvioEmail::ESTADO_PREENVIO);
if($campana != null)
$sms->setSmsCampana($campana);
$sms->setSmsMovil($movil);
$sms->setSmsFechaEnvio(new \DateTime());
if($transIdCliente !=null)
$sms->setSmsTransIdCliente ($transIdCliente);
$sms->setSmsEliminado(EnvioEmail::ELIMINADO_FALSE);
$sms->save();
$url = str_replace('#CAMPANA', $campana,$url);
$url = str_replace('#STRUSUARIO', $usuarioMcafee->getUmcParametroEncriptado(),$url);
$url = str_replace('#SMSID', $sms->getSmsId(),$url);
$url = str_replace('#PROCEDENCIA', Tracking::PROCEDENCIA_SMS,$url);
$urlAperturaTrack = str_replace('#ROUTING', 'SMStrack',$url);
$urlAperturaWeb = str_replace('#ROUTING', 'SMStracktemplate',$url);
$urlDescarga = str_replace('#ROUTING', 'descargar',$url);
//$urlDescarga = Sms::acortarUrl($urlDescarga);
$urlDescarga = Sms::acortar_url($urlDescarga);
$mensaje=$mensaje . $urlDescarga;
$post['to'] = array($movil);
$post['text'] = $mensaje;
$post['from'] = 'McAfee';
$user ='GearLabs';
$password = 'XCrk02@#';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://sms.teltech.ai/Api/rest/message");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch, CURLOPT_HTTPHEADER,
array(
"Accept: application/json",
"Authorization: Basic ".base64_encode($user.":".$password)));
curl_setopt($ch, CURLOPT_TIMEOUT, 50);
$result = json_decode(curl_exec($ch), true);
print_r($result);
//print_r($result['error']['code']);
$log->debug($tag.'enviando mensaje...'. $urlDescarga);
/***************************************/
/* $request = '{
"api_key":"9df2cfda7cc871680ede6ec24b4a479d",
"report_url":"http://servidoctor.com/callback/script",
"concat":1,
"messages":[
{
"from":"McAfee",
"to":"584165388803",
"text": "Descarga y participa por un SMART TV DE 50 pulgadas: http://bit.ly/2wHyOwK",
"send_at":"2018-02-18 17:30:00"
}
]
}';
$headers = array('Content-Type: application/json');
$ch = curl_init('https://api.gateway360.com/api/3.0/sms/send');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
print_r('RESULTADO2 '.$result);
if (curl_errno($ch) != 0 ){
die("curl error: ".curl_errno($ch));
} */
/***************************************/
if($result['error']['code']==0){
$log->debug($tag.'SMS enviado OK a '.$movil);
$sms->setSmsFromMensaje($mensaje);
$sms->setSmsEstado(Sms::ESTADO_ENVIADO);
$sms->save();
}
else{
$sms->setSmsEstado(Sms::ESTADO_ENVIADO_NO_OK);
$sms->setSmsFromMensaje($mensaje);
$sms->save();
$logError = Utiles::setLog('AppBundle/Model/sms', 'error/sms');
$logError->err($tag.'error enviar sms... movil'.$movil.' | '.print_r(array(
)));
$log->err($tag.'Se produjo un error al intentar enviar el SMS');
return null;
}
}
catch(\Exception $e){
$log->err($tag."Execption:$e | campana:$campana sms:$movil | umcId:".$usuarioMcafee->getUmcId());
$logError = Utiles::setLog('AppBundle/Model/sms', 'error/sms');
$logError->err($tag."usuarioMcafee no encontrado... campana:$campana | sms:$movil | umcId:".$usuarioMcafee->getUmcId());
return null;
}
return $sms;
}
public static function acortar_url($url) {
$usuario = "gearlabs";
$apikey = "R_8bf0031b8f644fec93997b7b23568b76";
$temp = "http://api.bit.ly/v3/shorten?login=".$usuario."&apiKey=".$apikey."&uri=".$url."&format=txt";
return file_get_contents($temp);
}
public static function acortarUrl($data){
$url = "http://url.gearlabs.cl/acortar";
$httpStatus = null;
try {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$output = curl_exec($ch);
$httpStatus = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpStatus == 200) {
$arrayRetorno = json_decode($output, true);
return $arrayRetorno['shortLink'];
}
else {
return array('error' => $httpStatus);
}
}
catch (\Exception $e) {
return array(
'error' => 'Error',
'detalle' => $e,
);
}
}
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseSmsPeer;
class SmsPeer extends BaseSmsPeer
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseSmsQuery;
class SmsQuery extends BaseSmsQuery
{
}
......@@ -19,4 +19,5 @@ class Tracking extends BaseTracking
const PROCEDENCIA_PORTALCAUTIVO = 'portalcautivo';
const PROCEDENCIA_EMAILING = 'email';
const PROCEDENCIA_EMAILWEBCALL = 'emailwc';
const PROCEDENCIA_SMS = 'sms';
}
<?php
namespace AppBundle\Model\map;
use \RelationMap;
use \TableMap;
/**
* This class defines the structure of the 'agente_webcall' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
* (i.e. if it's a text column type).
*
* @package propel.generator.src.AppBundle.Model.map
*/
class AgenteWebcallTableMap extends TableMap
{
/**
* The (dot-path) name of this class
*/
const CLASS_NAME = 'src.AppBundle.Model.map.AgenteWebcallTableMap';
/**
* Initialize the table attributes, columns and validators
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
* @throws PropelException
*/
public function initialize()
{
// attributes
$this->setName('agente_webcall');
$this->setPhpName('AgenteWebcall');
$this->setClassname('AppBundle\\Model\\AgenteWebcall');
$this->setPackage('src.AppBundle.Model');
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('awe_id', 'AweId', 'INTEGER', true, null, null);
$this->addColumn('awe_nombres', 'AweNombres', 'VARCHAR', false, 200, null);
$this->addColumn('awe_rut', 'AweRut', 'VARCHAR', false, 20, null);
$this->addColumn('awe_email', 'AweEmail', 'VARCHAR', false, 60, null);
$this->addColumn('awe_sexo', 'AweSexo', 'SMALLINT', false, null, null);
$this->addColumn('awe_clave', 'AweClave', 'VARCHAR', false, 100, null);
$this->addColumn('awe_estado', 'AweEstado', 'SMALLINT', false, null, null);
$this->addColumn('awe_eliminado', 'AweEliminado', 'CHAR', false, 10, null);
$this->addColumn('created_at', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('updated_at', 'UpdatedAt', 'TIMESTAMP', false, null, null);
// validators
} // initialize()
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{
} // buildRelations()
} // AgenteWebcallTableMap
......@@ -61,21 +61,4 @@ class BackendUsuarioTableMap extends TableMap
$this->addRelation('BackendusuarioBackendrol', 'AppBundle\\Model\\BackendusuarioBackendrol', RelationMap::ONE_TO_MANY, array('bus_id' => 'bus_id', ), null, null, 'BackendusuarioBackendrols');
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // BackendUsuarioTableMap
......@@ -54,25 +54,8 @@ class BackendusuarioBackendrolTableMap extends TableMap
*/
public function buildRelations()
{
$this->addRelation('BackendUsuario', 'AppBundle\\Model\\BackendUsuario', RelationMap::MANY_TO_ONE, array('bus_id' => 'bus_id', ), null, null);
$this->addRelation('BackendRol', 'AppBundle\\Model\\BackendRol', RelationMap::MANY_TO_ONE, array('bro_id' => 'bro_id', ), null, null);
$this->addRelation('BackendUsuario', 'AppBundle\\Model\\BackendUsuario', RelationMap::MANY_TO_ONE, array('bus_id' => 'bus_id', ), null, null);
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // BackendusuarioBackendrolTableMap
<?php
namespace AppBundle\Model\map;
use \RelationMap;
use \TableMap;
/**
* This class defines the structure of the 'batchsms' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
* (i.e. if it's a text column type).
*
* @package propel.generator.src.AppBundle.Model.map
*/
class BatchsmsTableMap extends TableMap
{
/**
* The (dot-path) name of this class
*/
const CLASS_NAME = 'src.AppBundle.Model.map.BatchsmsTableMap';
/**
* Initialize the table attributes, columns and validators
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
* @throws PropelException
*/
public function initialize()
{
// attributes
$this->setName('batchsms');
$this->setPhpName('Batchsms');
$this->setClassname('AppBundle\\Model\\Batchsms');
$this->setPackage('src.AppBundle.Model');
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('batchsms_id', 'BatchsmsId', 'INTEGER', true, null, null);
$this->addColumn('batchsms_total', 'BatchsmsTotal', 'INTEGER', false, null, null);
$this->addColumn('batchsms_procesado_ok', 'BatchsmsProcesadoOk', 'INTEGER', false, null, null);
$this->addColumn('batchsms_procesado_no_ok', 'BatchsmsProcesadoNoOk', 'INTEGER', false, null, null);
$this->addColumn('batchsms_enviado_ok', 'BatchsmsEnviadoOk', 'INTEGER', false, null, null);
$this->addColumn('batchsms_enviado_no_ok', 'BatchsmsEnviadoNoOk', 'INTEGER', false, null, null);
$this->addColumn('batchsms_ya_descargo', 'BatchsmsYaDescargo', 'INTEGER', false, null, null);
$this->addColumn('batchsms_sin_movil', 'BatchsmsSinMovil', 'INTEGER', false, null, null);
$this->addColumn('batchsms_descencriptado_ok', 'BatchsmsDescencriptadoOk', 'INTEGER', false, null, null);
$this->addColumn('batchsms_descencriptado_no_ok', 'BatchsmsDescencriptadoNoOk', 'INTEGER', false, null, null);
$this->addColumn('batchsms_permitido', 'BatchsmsPermitido', 'INTEGER', false, null, null);
$this->addColumn('batchsms_no_permitido', 'BatchsmsNoPermitido', 'INTEGER', false, null, null);
$this->addColumn('batchsms_delivery', 'BatchsmsDelivery', 'INTEGER', false, null, null);
$this->addColumn('batchsms_bounce', 'BatchsmsBounce', 'INTEGER', false, null, null);
$this->addColumn('batchsms_complaint', 'BatchsmsComplaint', 'INTEGER', false, null, null);
$this->addColumn('batchsms_eliminado', 'BatchsmsEliminado', 'BOOLEAN', false, 1, null);
$this->addColumn('created_at', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('updated_at', 'UpdatedAt', 'TIMESTAMP', false, null, null);
// validators
} // initialize()
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{
$this->addRelation('Sms', 'AppBundle\\Model\\Sms', RelationMap::ONE_TO_MANY, array('batchsms_id' => 'batchsms_id', ), null, null, 'Smss');
} // buildRelations()
} // BatchsmsTableMap
......@@ -71,21 +71,4 @@ class EmailingTableMap extends TableMap
$this->addRelation('EnvioEmail', 'AppBundle\\Model\\EnvioEmail', RelationMap::ONE_TO_MANY, array('ema_id' => 'ema_id', ), null, null, 'EnvioEmails');
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // EmailingTableMap
......@@ -72,21 +72,4 @@ class EnvioEmailTableMap extends TableMap
$this->addRelation('Tracking', 'AppBundle\\Model\\Tracking', RelationMap::ONE_TO_MANY, array('eem_id' => 'eem_id', ), null, null, 'Trackings');
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // EnvioEmailTableMap
......@@ -60,21 +60,4 @@ class McafeeTransaccionPendienteTableMap extends TableMap
$this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // McafeeTransaccionPendienteTableMap
......@@ -66,21 +66,4 @@ class McafeeTransaccionTableMap extends TableMap
$this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // McafeeTransaccionTableMap
......@@ -59,21 +59,4 @@ class McafeeUltimoProcesoMigracionTableMap extends TableMap
$this->addRelation('UsuariosMcafeeMovistarMigrar', 'AppBundle\\Model\\UsuariosMcafeeMovistarMigrar', RelationMap::MANY_TO_ONE, array('ultimo_umc_id' => 'id', ), null, null);
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // McafeeUltimoProcesoMigracionTableMap
......@@ -76,21 +76,4 @@ class NotificacionEmailTableMap extends TableMap
$this->addRelation('EnvioEmail', 'AppBundle\\Model\\EnvioEmail', RelationMap::MANY_TO_ONE, array('eem_id' => 'eem_id', ), null, null);
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // NotificacionEmailTableMap
<?php
namespace AppBundle\Model\map;
use \RelationMap;
use \TableMap;
/**
* This class defines the structure of the 'sms' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
* (i.e. if it's a text column type).
*
* @package propel.generator.src.AppBundle.Model.map
*/
class SmsTableMap extends TableMap
{
/**
* The (dot-path) name of this class
*/
const CLASS_NAME = 'src.AppBundle.Model.map.SmsTableMap';
/**
* Initialize the table attributes, columns and validators
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
* @throws PropelException
*/
public function initialize()
{
// attributes
$this->setName('sms');
$this->setPhpName('Sms');
$this->setClassname('AppBundle\\Model\\Sms');
$this->setPackage('src.AppBundle.Model');
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('sms_id', 'SmsId', 'INTEGER', true, null, null);
$this->addForeignKey('umc_id', 'UmcId', 'INTEGER', 'usuario_mcafee', 'umc_id', false, null, null);
$this->addForeignKey('batchsms_id', 'BatchsmsId', 'INTEGER', 'batchsms', 'batchsms_id', false, null, null);
$this->addColumn('sms_tipo', 'SmsTipo', 'SMALLINT', false, null, null);
$this->addColumn('sms_movil', 'SmsMovil', 'VARCHAR', false, 60, null);
$this->addColumn('sms_campana', 'SmsCampana', 'VARCHAR', false, 20, null);
$this->addColumn('sms_fecha_envio', 'SmsFechaEnvio', 'TIMESTAMP', false, null, null);
$this->addColumn('sms_fecha_notificacion', 'SmsFechaNotificacion', 'TIMESTAMP', false, null, null);
$this->addColumn('sms_trans_id_cliente', 'SmsTransIdCliente', 'VARCHAR', false, 200, null);
$this->addColumn('sms_from_movil', 'SmsFromMovil', 'VARCHAR', false, 60, null);
$this->addColumn('sms_from_mensaje', 'SmsFromMensaje', 'VARCHAR', false, 160, null);
$this->addColumn('sms_estado', 'SmsEstado', 'SMALLINT', false, null, null);
$this->addColumn('sms_eliminado', 'SmsEliminado', 'BOOLEAN', false, 1, null);
$this->addColumn('created_at', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('updated_at', 'UpdatedAt', 'TIMESTAMP', false, null, null);
// validators
} // initialize()
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{
$this->addRelation('Batchsms', 'AppBundle\\Model\\Batchsms', RelationMap::MANY_TO_ONE, array('batchsms_id' => 'batchsms_id', ), null, null);
$this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations()
} // SmsTableMap
......@@ -69,21 +69,4 @@ class TrackingTableMap extends TableMap
$this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // TrackingTableMap
......@@ -58,9 +58,9 @@ class UsuarioMcafeeTableMap extends TableMap
$this->addColumn('umc_permite_email', 'UmcPermiteEmail', 'BOOLEAN', false, 1, true);
$this->addColumn('umc_fecha_desuscripcion_email', 'UmcFechaDesuscripcionEmail', 'TIMESTAMP', false, null, null);
$this->addColumn('umc_movil', 'UmcMovil', 'VARCHAR', false, 200, null);
$this->addColumn('umc_fijo', 'UmcFijo', 'VARCHAR', false, 200, null);
$this->addColumn('umc_customer_id', 'UmcCustomerId', 'VARCHAR', false, 250, null);
$this->addColumn('umc_eliminado', 'UmcEliminado', 'BOOLEAN', false, 1, null);
$this->addColumn('umc_permite_sms', 'UmcPermiteSms', 'BOOLEAN', true, 1, true);
$this->addColumn('created_at', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('updated_at', 'UpdatedAt', 'TIMESTAMP', false, null, null);
// validators
......@@ -74,25 +74,8 @@ class UsuarioMcafeeTableMap extends TableMap
$this->addRelation('EnvioEmail', 'AppBundle\\Model\\EnvioEmail', RelationMap::ONE_TO_MANY, array('umc_id' => 'umc_id', ), null, null, 'EnvioEmails');
$this->addRelation('McafeeTransaccion', 'AppBundle\\Model\\McafeeTransaccion', RelationMap::ONE_TO_MANY, array('umc_id' => 'umc_id', ), null, null, 'McafeeTransaccions');
$this->addRelation('McafeeTransaccionPendiente', 'AppBundle\\Model\\McafeeTransaccionPendiente', RelationMap::ONE_TO_MANY, array('umc_id' => 'umc_id', ), null, null, 'McafeeTransaccionPendientes');
$this->addRelation('McafeeUltimoProcesoNormalizacion', 'AppBundle\\Model\\McafeeUltimoProcesoNormalizacion', RelationMap::ONE_TO_MANY, array('umc_id' => 'ultimo_umc_id', ), null, null, 'McafeeUltimoProcesoNormalizacions');
$this->addRelation('Sms', 'AppBundle\\Model\\Sms', RelationMap::ONE_TO_MANY, array('umc_id' => 'umc_id', ), null, null, 'Smss');
$this->addRelation('Tracking', 'AppBundle\\Model\\Tracking', RelationMap::ONE_TO_MANY, array('umc_id' => 'umc_id', ), null, null, 'Trackings');
} // buildRelations()
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/
public function getBehaviors()
{
return array(
'timestampable' => array (
'create_column' => 'created_at',
'update_column' => 'updated_at',
'disable_updated_at' => 'false',
),
);
} // getBehaviors()
} // UsuarioMcafeeTableMap
......@@ -43,7 +43,7 @@ class UsuariosMcafeeMovistarMigrarTableMap extends TableMap
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null);
$this->addColumn('id_mov', 'IdMov', 'INTEGER', false, null, 0);
$this->addColumn('id_mov', 'IdMov', 'INTEGER', true, null, 0);
$this->addColumn('area_tel', 'AreaTel', 'INTEGER', false, null, null);
$this->addColumn('rut', 'Rut', 'INTEGER', false, null, null);
$this->addColumn('nombres', 'Nombres', 'VARCHAR', false, 45, null);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -659,19 +659,8 @@ abstract class BaseBackendUsuario extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(BackendUsuarioPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(BackendUsuarioPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(BackendUsuarioPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -1620,18 +1609,4 @@ abstract class BaseBackendUsuario extends BaseObject implements Persistent
return $this->alreadyInSave;
}
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return BackendUsuario The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = BackendUsuarioPeer::UPDATED_AT;
return $this;
}
}
......@@ -631,69 +631,4 @@ abstract class BaseBackendUsuarioQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return BackendUsuarioQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(BackendUsuarioPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return BackendUsuarioQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(BackendUsuarioPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return BackendUsuarioQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(BackendUsuarioPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return BackendUsuarioQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(BackendUsuarioPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return BackendUsuarioQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(BackendUsuarioPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return BackendUsuarioQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(BackendUsuarioPeer::CREATED_AT);
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -1023,19 +1023,8 @@ abstract class BaseEmailing extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(EmailingPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(EmailingPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(EmailingPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -2151,18 +2140,4 @@ abstract class BaseEmailing extends BaseObject implements Persistent
return $this->alreadyInSave;
}
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return Emailing The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = EmailingPeer::UPDATED_AT;
return $this;
}
}
......@@ -1130,69 +1130,4 @@ abstract class BaseEmailingQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return EmailingQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(EmailingPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return EmailingQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(EmailingPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return EmailingQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(EmailingPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return EmailingQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(EmailingPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return EmailingQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(EmailingPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return EmailingQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(EmailingPeer::CREATED_AT);
}
}
......@@ -1053,19 +1053,8 @@ abstract class BaseEnvioEmail extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(EnvioEmailPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(EnvioEmailPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(EnvioEmailPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -2574,18 +2563,4 @@ abstract class BaseEnvioEmail extends BaseObject implements Persistent
return $this->alreadyInSave;
}
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return EnvioEmail The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = EnvioEmailPeer::UPDATED_AT;
return $this;
}
}
......@@ -817,19 +817,8 @@ abstract class BaseMcafeeTransaccion extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(McafeeTransaccionPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(McafeeTransaccionPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(McafeeTransaccionPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -1633,18 +1622,4 @@ abstract class BaseMcafeeTransaccion extends BaseObject implements Persistent
return $this->alreadyInSave;
}
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return McafeeTransaccion The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = McafeeTransaccionPeer::UPDATED_AT;
return $this;
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -64,6 +64,10 @@ backend_home_dashboard_emailing:
path: /home/dashboard/emailing
defaults: { _controller: BackendBundle:Home:dashboardEmailing }
backend_home_dashboard_sms:
path: /home/dashboard/sms
defaults: { _controller: BackendBundle:Home:dashboardSms }
backend_home_exportar_aperturas:
path: /home/aperturas/exportar/{procedencia}
defaults: { _controller: BackendBundle:Home:exportarAperturas }
......
This diff is collapsed.
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