actualizacion modelos

parent ee484b98
......@@ -61,4 +61,21 @@ 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,8 +54,25 @@ class BackendusuarioBackendrolTableMap extends TableMap
*/
public function buildRelations()
{
$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);
$this->addRelation('BackendRol', 'AppBundle\\Model\\BackendRol', RelationMap::MANY_TO_ONE, array('bro_id' => 'bro_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
......@@ -71,4 +71,21 @@ class BatchsmsTableMap extends TableMap
$this->addRelation('Sms', 'AppBundle\\Model\\Sms', RelationMap::ONE_TO_MANY, array('batchsms_id' => 'batchsms_id', ), null, null, 'Smss');
} // 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()
} // BatchsmsTableMap
......@@ -71,4 +71,21 @@ 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,4 +72,21 @@ 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,4 +60,21 @@ 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,4 +66,21 @@ 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,4 +59,21 @@ 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,4 +76,21 @@ 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
......@@ -69,4 +69,21 @@ class SmsTableMap 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()
} // SmsTableMap
......@@ -69,4 +69,21 @@ 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,6 +58,7 @@ 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);
......@@ -74,8 +75,26 @@ 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', true, null, 0);
$this->addColumn('id_mov', 'IdMov', 'INTEGER', false, 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);
......
......@@ -659,8 +659,19 @@ 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);
......@@ -1609,4 +1620,18 @@ 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,4 +631,69 @@ 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);
}
}
......@@ -1023,8 +1023,19 @@ abstract class BaseBatchsms extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(BatchsmsPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(BatchsmsPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(BatchsmsPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -2140,4 +2151,18 @@ abstract class BaseBatchsms 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 Batchsms The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = BatchsmsPeer::UPDATED_AT;
return $this;
}
}
......@@ -1130,4 +1130,69 @@ abstract class BaseBatchsmsQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return BatchsmsQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(BatchsmsPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return BatchsmsQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(BatchsmsPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return BatchsmsQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(BatchsmsPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return BatchsmsQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(BatchsmsPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return BatchsmsQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(BatchsmsPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return BatchsmsQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(BatchsmsPeer::CREATED_AT);
}
}
......@@ -1023,8 +1023,19 @@ 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);
......@@ -2140,4 +2151,18 @@ 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,4 +1130,69 @@ 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,8 +1053,19 @@ 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);
......@@ -2563,4 +2574,18 @@ 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;
}
}
......@@ -1207,4 +1207,69 @@ abstract class BaseEnvioEmailQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return EnvioEmailQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(EnvioEmailPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return EnvioEmailQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(EnvioEmailPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return EnvioEmailQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(EnvioEmailPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return EnvioEmailQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(EnvioEmailPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return EnvioEmailQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(EnvioEmailPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return EnvioEmailQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(EnvioEmailPeer::CREATED_AT);
}
}
......@@ -817,8 +817,19 @@ 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);
......@@ -1622,4 +1633,18 @@ 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;
}
}
......@@ -583,8 +583,19 @@ abstract class BaseMcafeeTransaccionPendiente extends BaseObject implements Pers
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(McafeeTransaccionPendientePeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(McafeeTransaccionPendientePeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(McafeeTransaccionPendientePeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -1286,4 +1297,18 @@ abstract class BaseMcafeeTransaccionPendiente extends BaseObject implements Pers
return $this->alreadyInSave;
}
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return McafeeTransaccionPendiente The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = McafeeTransaccionPendientePeer::UPDATED_AT;
return $this;
}
}
......@@ -643,4 +643,69 @@ abstract class BaseMcafeeTransaccionPendienteQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return McafeeTransaccionPendienteQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(McafeeTransaccionPendientePeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return McafeeTransaccionPendienteQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(McafeeTransaccionPendientePeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return McafeeTransaccionPendienteQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(McafeeTransaccionPendientePeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return McafeeTransaccionPendienteQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(McafeeTransaccionPendientePeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return McafeeTransaccionPendienteQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(McafeeTransaccionPendientePeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return McafeeTransaccionPendienteQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(McafeeTransaccionPendientePeer::CREATED_AT);
}
}
......@@ -828,4 +828,69 @@ abstract class BaseMcafeeTransaccionQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return McafeeTransaccionQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(McafeeTransaccionPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return McafeeTransaccionQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(McafeeTransaccionPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return McafeeTransaccionQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(McafeeTransaccionPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return McafeeTransaccionQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(McafeeTransaccionPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return McafeeTransaccionQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(McafeeTransaccionPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return McafeeTransaccionQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(McafeeTransaccionPeer::CREATED_AT);
}
}
......@@ -544,8 +544,19 @@ abstract class BaseMcafeeUltimoProcesoMigracion extends BaseObject implements Pe
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(McafeeUltimoProcesoMigracionPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(McafeeUltimoProcesoMigracionPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(McafeeUltimoProcesoMigracionPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -1230,4 +1241,18 @@ abstract class BaseMcafeeUltimoProcesoMigracion extends BaseObject implements Pe
return $this->alreadyInSave;
}
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return McafeeUltimoProcesoMigracion The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = McafeeUltimoProcesoMigracionPeer::UPDATED_AT;
return $this;
}
}
......@@ -597,4 +597,69 @@ abstract class BaseMcafeeUltimoProcesoMigracionQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return McafeeUltimoProcesoMigracionQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(McafeeUltimoProcesoMigracionPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return McafeeUltimoProcesoMigracionQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(McafeeUltimoProcesoMigracionPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return McafeeUltimoProcesoMigracionQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(McafeeUltimoProcesoMigracionPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return McafeeUltimoProcesoMigracionQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(McafeeUltimoProcesoMigracionPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return McafeeUltimoProcesoMigracionQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(McafeeUltimoProcesoMigracionPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return McafeeUltimoProcesoMigracionQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(McafeeUltimoProcesoMigracionPeer::CREATED_AT);
}
}
......@@ -1339,8 +1339,19 @@ abstract class BaseNotificacionEmail extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(NotificacionEmailPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(NotificacionEmailPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(NotificacionEmailPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -2314,4 +2325,18 @@ abstract class BaseNotificacionEmail 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 NotificacionEmail The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = NotificacionEmailPeer::UPDATED_AT;
return $this;
}
}
......@@ -1199,4 +1199,69 @@ abstract class BaseNotificacionEmailQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return NotificacionEmailQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(NotificacionEmailPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return NotificacionEmailQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(NotificacionEmailPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return NotificacionEmailQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(NotificacionEmailPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return NotificacionEmailQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(NotificacionEmailPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return NotificacionEmailQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(NotificacionEmailPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return NotificacionEmailQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(NotificacionEmailPeer::CREATED_AT);
}
}
......@@ -980,8 +980,19 @@ abstract class BaseSms extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(SmsPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(SmsPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(SmsPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -1891,4 +1902,18 @@ abstract class BaseSms 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 Sms The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = SmsPeer::UPDATED_AT;
return $this;
}
}
......@@ -1016,4 +1016,69 @@ abstract class BaseSmsQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return SmsQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(SmsPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return SmsQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(SmsPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return SmsQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(SmsPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return SmsQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(SmsPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return SmsQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(SmsPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return SmsQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(SmsPeer::CREATED_AT);
}
}
......@@ -918,8 +918,19 @@ abstract class BaseTracking extends BaseObject implements Persistent
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(TrackingPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(TrackingPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else {
$ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(TrackingPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
}
if ($ret) {
$affectedRows = $this->doSave($con);
......@@ -1829,4 +1840,18 @@ abstract class BaseTracking 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 Tracking The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = TrackingPeer::UPDATED_AT;
return $this;
}
}
......@@ -988,4 +988,69 @@ abstract class BaseTrackingQuery extends ModelCriteria
return $this;
}
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return TrackingQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(TrackingPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return TrackingQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(TrackingPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return TrackingQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(TrackingPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return TrackingQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(TrackingPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return TrackingQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(TrackingPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return TrackingQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(TrackingPeer::CREATED_AT);
}
}
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