actualizacion modelos

parent ee484b98
...@@ -61,4 +61,21 @@ class BackendUsuarioTableMap extends TableMap ...@@ -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'); $this->addRelation('BackendusuarioBackendrol', 'AppBundle\\Model\\BackendusuarioBackendrol', RelationMap::ONE_TO_MANY, array('bus_id' => 'bus_id', ), null, null, 'BackendusuarioBackendrols');
} // buildRelations() } // 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 } // BackendUsuarioTableMap
...@@ -54,8 +54,25 @@ class BackendusuarioBackendrolTableMap extends TableMap ...@@ -54,8 +54,25 @@ class BackendusuarioBackendrolTableMap extends TableMap
*/ */
public function buildRelations() 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('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() } // 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 } // BackendusuarioBackendrolTableMap
...@@ -71,4 +71,21 @@ class BatchsmsTableMap extends TableMap ...@@ -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'); $this->addRelation('Sms', 'AppBundle\\Model\\Sms', RelationMap::ONE_TO_MANY, array('batchsms_id' => 'batchsms_id', ), null, null, 'Smss');
} // buildRelations() } // 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 } // BatchsmsTableMap
...@@ -71,4 +71,21 @@ class EmailingTableMap extends TableMap ...@@ -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'); $this->addRelation('EnvioEmail', 'AppBundle\\Model\\EnvioEmail', RelationMap::ONE_TO_MANY, array('ema_id' => 'ema_id', ), null, null, 'EnvioEmails');
} // buildRelations() } // 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 } // EmailingTableMap
...@@ -72,4 +72,21 @@ class EnvioEmailTableMap extends TableMap ...@@ -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'); $this->addRelation('Tracking', 'AppBundle\\Model\\Tracking', RelationMap::ONE_TO_MANY, array('eem_id' => 'eem_id', ), null, null, 'Trackings');
} // buildRelations() } // 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 } // EnvioEmailTableMap
...@@ -60,4 +60,21 @@ class McafeeTransaccionPendienteTableMap extends TableMap ...@@ -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); $this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations() } // 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 } // McafeeTransaccionPendienteTableMap
...@@ -66,4 +66,21 @@ class McafeeTransaccionTableMap extends TableMap ...@@ -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); $this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations() } // 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 } // McafeeTransaccionTableMap
...@@ -59,4 +59,21 @@ class McafeeUltimoProcesoMigracionTableMap extends TableMap ...@@ -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); $this->addRelation('UsuariosMcafeeMovistarMigrar', 'AppBundle\\Model\\UsuariosMcafeeMovistarMigrar', RelationMap::MANY_TO_ONE, array('ultimo_umc_id' => 'id', ), null, null);
} // buildRelations() } // 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 } // McafeeUltimoProcesoMigracionTableMap
...@@ -76,4 +76,21 @@ class NotificacionEmailTableMap extends TableMap ...@@ -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); $this->addRelation('EnvioEmail', 'AppBundle\\Model\\EnvioEmail', RelationMap::MANY_TO_ONE, array('eem_id' => 'eem_id', ), null, null);
} // buildRelations() } // 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 } // NotificacionEmailTableMap
...@@ -69,4 +69,21 @@ class SmsTableMap extends TableMap ...@@ -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); $this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations() } // 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 } // SmsTableMap
...@@ -69,4 +69,21 @@ class TrackingTableMap extends TableMap ...@@ -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); $this->addRelation('UsuarioMcafee', 'AppBundle\\Model\\UsuarioMcafee', RelationMap::MANY_TO_ONE, array('umc_id' => 'umc_id', ), null, null);
} // buildRelations() } // 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 } // TrackingTableMap
...@@ -58,6 +58,7 @@ class UsuarioMcafeeTableMap extends TableMap ...@@ -58,6 +58,7 @@ class UsuarioMcafeeTableMap extends TableMap
$this->addColumn('umc_permite_email', 'UmcPermiteEmail', 'BOOLEAN', false, 1, true); $this->addColumn('umc_permite_email', 'UmcPermiteEmail', 'BOOLEAN', false, 1, true);
$this->addColumn('umc_fecha_desuscripcion_email', 'UmcFechaDesuscripcionEmail', 'TIMESTAMP', false, null, null); $this->addColumn('umc_fecha_desuscripcion_email', 'UmcFechaDesuscripcionEmail', 'TIMESTAMP', false, null, null);
$this->addColumn('umc_movil', 'UmcMovil', 'VARCHAR', false, 200, 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_customer_id', 'UmcCustomerId', 'VARCHAR', false, 250, null);
$this->addColumn('umc_eliminado', 'UmcEliminado', 'BOOLEAN', false, 1, null); $this->addColumn('umc_eliminado', 'UmcEliminado', 'BOOLEAN', false, 1, null);
$this->addColumn('umc_permite_sms', 'UmcPermiteSms', 'BOOLEAN', true, 1, true); $this->addColumn('umc_permite_sms', 'UmcPermiteSms', 'BOOLEAN', true, 1, true);
...@@ -74,8 +75,26 @@ class UsuarioMcafeeTableMap extends TableMap ...@@ -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('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('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('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('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'); $this->addRelation('Tracking', 'AppBundle\\Model\\Tracking', RelationMap::ONE_TO_MANY, array('umc_id' => 'umc_id', ), null, null, 'Trackings');
} // buildRelations() } // 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 } // UsuarioMcafeeTableMap
...@@ -43,7 +43,7 @@ class UsuariosMcafeeMovistarMigrarTableMap extends TableMap ...@@ -43,7 +43,7 @@ class UsuariosMcafeeMovistarMigrarTableMap extends TableMap
$this->setUseIdGenerator(true); $this->setUseIdGenerator(true);
// columns // columns
$this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null); $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('area_tel', 'AreaTel', 'INTEGER', false, null, null);
$this->addColumn('rut', 'Rut', 'INTEGER', false, null, null); $this->addColumn('rut', 'Rut', 'INTEGER', false, null, null);
$this->addColumn('nombres', 'Nombres', 'VARCHAR', false, 45, null); $this->addColumn('nombres', 'Nombres', 'VARCHAR', false, 45, null);
......
...@@ -659,8 +659,19 @@ abstract class BaseBackendUsuario extends BaseObject implements Persistent ...@@ -659,8 +659,19 @@ abstract class BaseBackendUsuario extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(BackendUsuarioPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -1609,4 +1620,18 @@ abstract class BaseBackendUsuario extends BaseObject implements Persistent ...@@ -1609,4 +1620,18 @@ abstract class BaseBackendUsuario extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -631,4 +631,69 @@ abstract class BaseBackendUsuarioQuery extends ModelCriteria
return $this; 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);
}
} }
...@@ -67,14 +67,14 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -67,14 +67,14 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
protected $updated_at; protected $updated_at;
/** /**
* @var BackendRol * @var BackendUsuario
*/ */
protected $aBackendRol; protected $aBackendUsuario;
/** /**
* @var BackendUsuario * @var BackendRol
*/ */
protected $aBackendUsuario; protected $aBackendRol;
/** /**
* Flag to prevent endless save loop, if this object is referenced * Flag to prevent endless save loop, if this object is referenced
...@@ -407,8 +407,8 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -407,8 +407,8 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
if ($deep) { // also de-associate any related objects? if ($deep) { // also de-associate any related objects?
$this->aBackendRol = null;
$this->aBackendUsuario = null; $this->aBackendUsuario = null;
$this->aBackendRol = null;
} // if (deep) } // if (deep)
} }
...@@ -481,8 +481,19 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -481,8 +481,19 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(BackendusuarioBackendrolPeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(BackendusuarioBackendrolPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(BackendusuarioBackendrolPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -527,13 +538,6 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -527,13 +538,6 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
// method. This object relates to these object(s) by a // method. This object relates to these object(s) by a
// foreign key reference. // foreign key reference.
if ($this->aBackendRol !== null) {
if ($this->aBackendRol->isModified() || $this->aBackendRol->isNew()) {
$affectedRows += $this->aBackendRol->save($con);
}
$this->setBackendRol($this->aBackendRol);
}
if ($this->aBackendUsuario !== null) { if ($this->aBackendUsuario !== null) {
if ($this->aBackendUsuario->isModified() || $this->aBackendUsuario->isNew()) { if ($this->aBackendUsuario->isModified() || $this->aBackendUsuario->isNew()) {
$affectedRows += $this->aBackendUsuario->save($con); $affectedRows += $this->aBackendUsuario->save($con);
...@@ -541,6 +545,13 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -541,6 +545,13 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
$this->setBackendUsuario($this->aBackendUsuario); $this->setBackendUsuario($this->aBackendUsuario);
} }
if ($this->aBackendRol !== null) {
if ($this->aBackendRol->isModified() || $this->aBackendRol->isNew()) {
$affectedRows += $this->aBackendRol->save($con);
}
$this->setBackendRol($this->aBackendRol);
}
if ($this->isNew() || $this->isModified()) { if ($this->isNew() || $this->isModified()) {
// persist changes // persist changes
if ($this->isNew()) { if ($this->isNew()) {
...@@ -701,18 +712,18 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -701,18 +712,18 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
// method. This object relates to these object(s) by a // method. This object relates to these object(s) by a
// foreign key reference. // foreign key reference.
if ($this->aBackendRol !== null) {
if (!$this->aBackendRol->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aBackendRol->getValidationFailures());
}
}
if ($this->aBackendUsuario !== null) { if ($this->aBackendUsuario !== null) {
if (!$this->aBackendUsuario->validate($columns)) { if (!$this->aBackendUsuario->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aBackendUsuario->getValidationFailures()); $failureMap = array_merge($failureMap, $this->aBackendUsuario->getValidationFailures());
} }
} }
if ($this->aBackendRol !== null) {
if (!$this->aBackendRol->validate($columns)) {
$failureMap = array_merge($failureMap, $this->aBackendRol->getValidationFailures());
}
}
if (($retval = BackendusuarioBackendrolPeer::doValidate($this, $columns)) !== true) { if (($retval = BackendusuarioBackendrolPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval); $failureMap = array_merge($failureMap, $retval);
...@@ -806,12 +817,12 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -806,12 +817,12 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
} }
if ($includeForeignObjects) { if ($includeForeignObjects) {
if (null !== $this->aBackendRol) {
$result['BackendRol'] = $this->aBackendRol->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
}
if (null !== $this->aBackendUsuario) { if (null !== $this->aBackendUsuario) {
$result['BackendUsuario'] = $this->aBackendUsuario->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); $result['BackendUsuario'] = $this->aBackendUsuario->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
} }
if (null !== $this->aBackendRol) {
$result['BackendRol'] = $this->aBackendRol->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
}
} }
return $result; return $result;
...@@ -1033,24 +1044,24 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -1033,24 +1044,24 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
} }
/** /**
* Declares an association between this object and a BackendRol object. * Declares an association between this object and a BackendUsuario object.
* *
* @param BackendRol $v * @param BackendUsuario $v
* @return BackendusuarioBackendrol The current object (for fluent API support) * @return BackendusuarioBackendrol The current object (for fluent API support)
* @throws PropelException * @throws PropelException
*/ */
public function setBackendRol(BackendRol $v = null) public function setBackendUsuario(BackendUsuario $v = null)
{ {
if ($v === null) { if ($v === null) {
$this->setBroId(NULL); $this->setBusId(NULL);
} else { } else {
$this->setBroId($v->getBroId()); $this->setBusId($v->getBusId());
} }
$this->aBackendRol = $v; $this->aBackendUsuario = $v;
// Add binding for other direction of this n:n relationship. // Add binding for other direction of this n:n relationship.
// If this object has already been added to the BackendRol object, it will not be re-added. // If this object has already been added to the BackendUsuario object, it will not be re-added.
if ($v !== null) { if ($v !== null) {
$v->addBackendusuarioBackendrol($this); $v->addBackendusuarioBackendrol($this);
} }
...@@ -1061,48 +1072,48 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -1061,48 +1072,48 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
/** /**
* Get the associated BackendRol object * Get the associated BackendUsuario object
* *
* @param PropelPDO $con Optional Connection object. * @param PropelPDO $con Optional Connection object.
* @param $doQuery Executes a query to get the object if required * @param $doQuery Executes a query to get the object if required
* @return BackendRol The associated BackendRol object. * @return BackendUsuario The associated BackendUsuario object.
* @throws PropelException * @throws PropelException
*/ */
public function getBackendRol(PropelPDO $con = null, $doQuery = true) public function getBackendUsuario(PropelPDO $con = null, $doQuery = true)
{ {
if ($this->aBackendRol === null && ($this->bro_id !== null) && $doQuery) { if ($this->aBackendUsuario === null && ($this->bus_id !== null) && $doQuery) {
$this->aBackendRol = BackendRolQuery::create()->findPk($this->bro_id, $con); $this->aBackendUsuario = BackendUsuarioQuery::create()->findPk($this->bus_id, $con);
/* The following can be used additionally to /* The following can be used additionally to
guarantee the related object contains a reference guarantee the related object contains a reference
to this object. This level of coupling may, however, be to this object. This level of coupling may, however, be
undesirable since it could result in an only partially populated collection undesirable since it could result in an only partially populated collection
in the referenced object. in the referenced object.
$this->aBackendRol->addBackendusuarioBackendrols($this); $this->aBackendUsuario->addBackendusuarioBackendrols($this);
*/ */
} }
return $this->aBackendRol; return $this->aBackendUsuario;
} }
/** /**
* Declares an association between this object and a BackendUsuario object. * Declares an association between this object and a BackendRol object.
* *
* @param BackendUsuario $v * @param BackendRol $v
* @return BackendusuarioBackendrol The current object (for fluent API support) * @return BackendusuarioBackendrol The current object (for fluent API support)
* @throws PropelException * @throws PropelException
*/ */
public function setBackendUsuario(BackendUsuario $v = null) public function setBackendRol(BackendRol $v = null)
{ {
if ($v === null) { if ($v === null) {
$this->setBusId(NULL); $this->setBroId(NULL);
} else { } else {
$this->setBusId($v->getBusId()); $this->setBroId($v->getBroId());
} }
$this->aBackendUsuario = $v; $this->aBackendRol = $v;
// Add binding for other direction of this n:n relationship. // Add binding for other direction of this n:n relationship.
// If this object has already been added to the BackendUsuario object, it will not be re-added. // If this object has already been added to the BackendRol object, it will not be re-added.
if ($v !== null) { if ($v !== null) {
$v->addBackendusuarioBackendrol($this); $v->addBackendusuarioBackendrol($this);
} }
...@@ -1113,27 +1124,27 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -1113,27 +1124,27 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
/** /**
* Get the associated BackendUsuario object * Get the associated BackendRol object
* *
* @param PropelPDO $con Optional Connection object. * @param PropelPDO $con Optional Connection object.
* @param $doQuery Executes a query to get the object if required * @param $doQuery Executes a query to get the object if required
* @return BackendUsuario The associated BackendUsuario object. * @return BackendRol The associated BackendRol object.
* @throws PropelException * @throws PropelException
*/ */
public function getBackendUsuario(PropelPDO $con = null, $doQuery = true) public function getBackendRol(PropelPDO $con = null, $doQuery = true)
{ {
if ($this->aBackendUsuario === null && ($this->bus_id !== null) && $doQuery) { if ($this->aBackendRol === null && ($this->bro_id !== null) && $doQuery) {
$this->aBackendUsuario = BackendUsuarioQuery::create()->findPk($this->bus_id, $con); $this->aBackendRol = BackendRolQuery::create()->findPk($this->bro_id, $con);
/* The following can be used additionally to /* The following can be used additionally to
guarantee the related object contains a reference guarantee the related object contains a reference
to this object. This level of coupling may, however, be to this object. This level of coupling may, however, be
undesirable since it could result in an only partially populated collection undesirable since it could result in an only partially populated collection
in the referenced object. in the referenced object.
$this->aBackendUsuario->addBackendusuarioBackendrols($this); $this->aBackendRol->addBackendusuarioBackendrols($this);
*/ */
} }
return $this->aBackendUsuario; return $this->aBackendRol;
} }
/** /**
...@@ -1167,18 +1178,18 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -1167,18 +1178,18 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
{ {
if ($deep && !$this->alreadyInClearAllReferencesDeep) { if ($deep && !$this->alreadyInClearAllReferencesDeep) {
$this->alreadyInClearAllReferencesDeep = true; $this->alreadyInClearAllReferencesDeep = true;
if ($this->aBackendRol instanceof Persistent) {
$this->aBackendRol->clearAllReferences($deep);
}
if ($this->aBackendUsuario instanceof Persistent) { if ($this->aBackendUsuario instanceof Persistent) {
$this->aBackendUsuario->clearAllReferences($deep); $this->aBackendUsuario->clearAllReferences($deep);
} }
if ($this->aBackendRol instanceof Persistent) {
$this->aBackendRol->clearAllReferences($deep);
}
$this->alreadyInClearAllReferencesDeep = false; $this->alreadyInClearAllReferencesDeep = false;
} // if ($deep) } // if ($deep)
$this->aBackendRol = null;
$this->aBackendUsuario = null; $this->aBackendUsuario = null;
$this->aBackendRol = null;
} }
/** /**
...@@ -1201,4 +1212,18 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis ...@@ -1201,4 +1212,18 @@ abstract class BaseBackendusuarioBackendrol extends BaseObject implements Persis
return $this->alreadyInSave; return $this->alreadyInSave;
} }
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return BackendusuarioBackendrol The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = BackendusuarioBackendrolPeer::UPDATED_AT;
return $this;
}
} }
...@@ -475,7 +475,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -475,7 +475,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Returns the number of rows matching criteria, joining the related BackendRol table * Returns the number of rows matching criteria, joining the related BackendUsuario table
* *
* @param Criteria $criteria * @param Criteria $criteria
* @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
...@@ -483,7 +483,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -483,7 +483,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
* @return int Number of matching rows. * @return int Number of matching rows.
*/ */
public static function doCountJoinBackendRol(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doCountJoinBackendUsuario(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
// we're going to modify criteria, so copy it first // we're going to modify criteria, so copy it first
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -510,7 +510,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -510,7 +510,7 @@ abstract class BaseBackendusuarioBackendrolPeer
$con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ); $con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ);
} }
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior);
$stmt = BasePeer::doCount($criteria, $con); $stmt = BasePeer::doCount($criteria, $con);
...@@ -526,7 +526,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -526,7 +526,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Returns the number of rows matching criteria, joining the related BackendUsuario table * Returns the number of rows matching criteria, joining the related BackendRol table
* *
* @param Criteria $criteria * @param Criteria $criteria
* @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
...@@ -534,7 +534,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -534,7 +534,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
* @return int Number of matching rows. * @return int Number of matching rows.
*/ */
public static function doCountJoinBackendUsuario(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doCountJoinBackendRol(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
// we're going to modify criteria, so copy it first // we're going to modify criteria, so copy it first
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -561,7 +561,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -561,7 +561,7 @@ abstract class BaseBackendusuarioBackendrolPeer
$con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ); $con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ);
} }
$criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior);
$stmt = BasePeer::doCount($criteria, $con); $stmt = BasePeer::doCount($criteria, $con);
...@@ -577,7 +577,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -577,7 +577,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Selects a collection of BackendusuarioBackendrol objects pre-filled with their BackendRol objects. * Selects a collection of BackendusuarioBackendrol objects pre-filled with their BackendUsuario objects.
* @param Criteria $criteria * @param Criteria $criteria
* @param PropelPDO $con * @param PropelPDO $con
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
...@@ -585,7 +585,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -585,7 +585,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @throws PropelException Any exceptions caught during processing will be * @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException. * rethrown wrapped into a PropelException.
*/ */
public static function doSelectJoinBackendRol(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doSelectJoinBackendUsuario(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -596,9 +596,9 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -596,9 +596,9 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addSelectColumns($criteria); BackendusuarioBackendrolPeer::addSelectColumns($criteria);
$startcol = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS; $startcol = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS;
BackendRolPeer::addSelectColumns($criteria); BackendUsuarioPeer::addSelectColumns($criteria);
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior);
$stmt = BasePeer::doSelect($criteria, $con); $stmt = BasePeer::doSelect($criteria, $con);
$results = array(); $results = array();
...@@ -618,19 +618,19 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -618,19 +618,19 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1); BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1);
} // if $obj1 already loaded } // if $obj1 already loaded
$key2 = BackendRolPeer::getPrimaryKeyHashFromRow($row, $startcol); $key2 = BackendUsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol);
if ($key2 !== null) { if ($key2 !== null) {
$obj2 = BackendRolPeer::getInstanceFromPool($key2); $obj2 = BackendUsuarioPeer::getInstanceFromPool($key2);
if (!$obj2) { if (!$obj2) {
$cls = BackendRolPeer::getOMClass(); $cls = BackendUsuarioPeer::getOMClass();
$obj2 = new $cls(); $obj2 = new $cls();
$obj2->hydrate($row, $startcol); $obj2->hydrate($row, $startcol);
BackendRolPeer::addInstanceToPool($obj2, $key2); BackendUsuarioPeer::addInstanceToPool($obj2, $key2);
} // if obj2 already loaded } // if obj2 already loaded
// Add the $obj1 (BackendusuarioBackendrol) to $obj2 (BackendRol) // Add the $obj1 (BackendusuarioBackendrol) to $obj2 (BackendUsuario)
$obj2->addBackendusuarioBackendrol($obj1); $obj2->addBackendusuarioBackendrol($obj1);
} // if joined row was not null } // if joined row was not null
...@@ -644,7 +644,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -644,7 +644,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Selects a collection of BackendusuarioBackendrol objects pre-filled with their BackendUsuario objects. * Selects a collection of BackendusuarioBackendrol objects pre-filled with their BackendRol objects.
* @param Criteria $criteria * @param Criteria $criteria
* @param PropelPDO $con * @param PropelPDO $con
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
...@@ -652,7 +652,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -652,7 +652,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @throws PropelException Any exceptions caught during processing will be * @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException. * rethrown wrapped into a PropelException.
*/ */
public static function doSelectJoinBackendUsuario(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doSelectJoinBackendRol(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -663,9 +663,9 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -663,9 +663,9 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addSelectColumns($criteria); BackendusuarioBackendrolPeer::addSelectColumns($criteria);
$startcol = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS; $startcol = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS;
BackendUsuarioPeer::addSelectColumns($criteria); BackendRolPeer::addSelectColumns($criteria);
$criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior);
$stmt = BasePeer::doSelect($criteria, $con); $stmt = BasePeer::doSelect($criteria, $con);
$results = array(); $results = array();
...@@ -685,19 +685,19 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -685,19 +685,19 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1); BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1);
} // if $obj1 already loaded } // if $obj1 already loaded
$key2 = BackendUsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol); $key2 = BackendRolPeer::getPrimaryKeyHashFromRow($row, $startcol);
if ($key2 !== null) { if ($key2 !== null) {
$obj2 = BackendUsuarioPeer::getInstanceFromPool($key2); $obj2 = BackendRolPeer::getInstanceFromPool($key2);
if (!$obj2) { if (!$obj2) {
$cls = BackendUsuarioPeer::getOMClass(); $cls = BackendRolPeer::getOMClass();
$obj2 = new $cls(); $obj2 = new $cls();
$obj2->hydrate($row, $startcol); $obj2->hydrate($row, $startcol);
BackendUsuarioPeer::addInstanceToPool($obj2, $key2); BackendRolPeer::addInstanceToPool($obj2, $key2);
} // if obj2 already loaded } // if obj2 already loaded
// Add the $obj1 (BackendusuarioBackendrol) to $obj2 (BackendUsuario) // Add the $obj1 (BackendusuarioBackendrol) to $obj2 (BackendRol)
$obj2->addBackendusuarioBackendrol($obj1); $obj2->addBackendusuarioBackendrol($obj1);
} // if joined row was not null } // if joined row was not null
...@@ -746,10 +746,10 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -746,10 +746,10 @@ abstract class BaseBackendusuarioBackendrolPeer
$con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ); $con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ);
} }
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior);
$criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior);
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior);
$stmt = BasePeer::doCount($criteria, $con); $stmt = BasePeer::doCount($criteria, $con);
if ($row = $stmt->fetch(PDO::FETCH_NUM)) { if ($row = $stmt->fetch(PDO::FETCH_NUM)) {
...@@ -784,16 +784,16 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -784,16 +784,16 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addSelectColumns($criteria); BackendusuarioBackendrolPeer::addSelectColumns($criteria);
$startcol2 = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS; $startcol2 = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS;
BackendRolPeer::addSelectColumns($criteria);
$startcol3 = $startcol2 + BackendRolPeer::NUM_HYDRATE_COLUMNS;
BackendUsuarioPeer::addSelectColumns($criteria); BackendUsuarioPeer::addSelectColumns($criteria);
$startcol4 = $startcol3 + BackendUsuarioPeer::NUM_HYDRATE_COLUMNS; $startcol3 = $startcol2 + BackendUsuarioPeer::NUM_HYDRATE_COLUMNS;
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior); BackendRolPeer::addSelectColumns($criteria);
$startcol4 = $startcol3 + BackendRolPeer::NUM_HYDRATE_COLUMNS;
$criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior);
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior);
$stmt = BasePeer::doSelect($criteria, $con); $stmt = BasePeer::doSelect($criteria, $con);
$results = array(); $results = array();
...@@ -811,39 +811,39 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -811,39 +811,39 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1); BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1);
} // if obj1 already loaded } // if obj1 already loaded
// Add objects for joined BackendRol rows // Add objects for joined BackendUsuario rows
$key2 = BackendRolPeer::getPrimaryKeyHashFromRow($row, $startcol2); $key2 = BackendUsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2);
if ($key2 !== null) { if ($key2 !== null) {
$obj2 = BackendRolPeer::getInstanceFromPool($key2); $obj2 = BackendUsuarioPeer::getInstanceFromPool($key2);
if (!$obj2) { if (!$obj2) {
$cls = BackendRolPeer::getOMClass(); $cls = BackendUsuarioPeer::getOMClass();
$obj2 = new $cls(); $obj2 = new $cls();
$obj2->hydrate($row, $startcol2); $obj2->hydrate($row, $startcol2);
BackendRolPeer::addInstanceToPool($obj2, $key2); BackendUsuarioPeer::addInstanceToPool($obj2, $key2);
} // if obj2 loaded } // if obj2 loaded
// Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj2 (BackendRol) // Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj2 (BackendUsuario)
$obj2->addBackendusuarioBackendrol($obj1); $obj2->addBackendusuarioBackendrol($obj1);
} // if joined row not null } // if joined row not null
// Add objects for joined BackendUsuario rows // Add objects for joined BackendRol rows
$key3 = BackendUsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol3); $key3 = BackendRolPeer::getPrimaryKeyHashFromRow($row, $startcol3);
if ($key3 !== null) { if ($key3 !== null) {
$obj3 = BackendUsuarioPeer::getInstanceFromPool($key3); $obj3 = BackendRolPeer::getInstanceFromPool($key3);
if (!$obj3) { if (!$obj3) {
$cls = BackendUsuarioPeer::getOMClass(); $cls = BackendRolPeer::getOMClass();
$obj3 = new $cls(); $obj3 = new $cls();
$obj3->hydrate($row, $startcol3); $obj3->hydrate($row, $startcol3);
BackendUsuarioPeer::addInstanceToPool($obj3, $key3); BackendRolPeer::addInstanceToPool($obj3, $key3);
} // if obj3 loaded } // if obj3 loaded
// Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj3 (BackendUsuario) // Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj3 (BackendRol)
$obj3->addBackendusuarioBackendrol($obj1); $obj3->addBackendusuarioBackendrol($obj1);
} // if joined row not null } // if joined row not null
...@@ -856,7 +856,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -856,7 +856,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Returns the number of rows matching criteria, joining the related BackendRol table * Returns the number of rows matching criteria, joining the related BackendUsuario table
* *
* @param Criteria $criteria * @param Criteria $criteria
* @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
...@@ -864,7 +864,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -864,7 +864,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
* @return int Number of matching rows. * @return int Number of matching rows.
*/ */
public static function doCountJoinAllExceptBackendRol(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doCountJoinAllExceptBackendUsuario(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
// we're going to modify criteria, so copy it first // we're going to modify criteria, so copy it first
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -891,7 +891,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -891,7 +891,7 @@ abstract class BaseBackendusuarioBackendrolPeer
$con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ); $con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ);
} }
$criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior);
$stmt = BasePeer::doCount($criteria, $con); $stmt = BasePeer::doCount($criteria, $con);
...@@ -907,7 +907,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -907,7 +907,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Returns the number of rows matching criteria, joining the related BackendUsuario table * Returns the number of rows matching criteria, joining the related BackendRol table
* *
* @param Criteria $criteria * @param Criteria $criteria
* @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead. * @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
...@@ -915,7 +915,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -915,7 +915,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN * @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
* @return int Number of matching rows. * @return int Number of matching rows.
*/ */
public static function doCountJoinAllExceptBackendUsuario(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doCountJoinAllExceptBackendRol(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
// we're going to modify criteria, so copy it first // we're going to modify criteria, so copy it first
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -942,7 +942,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -942,7 +942,7 @@ abstract class BaseBackendusuarioBackendrolPeer
$con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ); $con = Propel::getConnection(BackendusuarioBackendrolPeer::DATABASE_NAME, Propel::CONNECTION_READ);
} }
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior);
$stmt = BasePeer::doCount($criteria, $con); $stmt = BasePeer::doCount($criteria, $con);
...@@ -958,7 +958,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -958,7 +958,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Selects a collection of BackendusuarioBackendrol objects pre-filled with all related objects except BackendRol. * Selects a collection of BackendusuarioBackendrol objects pre-filled with all related objects except BackendUsuario.
* *
* @param Criteria $criteria * @param Criteria $criteria
* @param PropelPDO $con * @param PropelPDO $con
...@@ -967,7 +967,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -967,7 +967,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @throws PropelException Any exceptions caught during processing will be * @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException. * rethrown wrapped into a PropelException.
*/ */
public static function doSelectJoinAllExceptBackendRol(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doSelectJoinAllExceptBackendUsuario(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -981,10 +981,10 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -981,10 +981,10 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addSelectColumns($criteria); BackendusuarioBackendrolPeer::addSelectColumns($criteria);
$startcol2 = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS; $startcol2 = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS;
BackendUsuarioPeer::addSelectColumns($criteria); BackendRolPeer::addSelectColumns($criteria);
$startcol3 = $startcol2 + BackendUsuarioPeer::NUM_HYDRATE_COLUMNS; $startcol3 = $startcol2 + BackendRolPeer::NUM_HYDRATE_COLUMNS;
$criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior);
$stmt = BasePeer::doSelect($criteria, $con); $stmt = BasePeer::doSelect($criteria, $con);
...@@ -1004,21 +1004,21 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -1004,21 +1004,21 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1); BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1);
} // if obj1 already loaded } // if obj1 already loaded
// Add objects for joined BackendUsuario rows // Add objects for joined BackendRol rows
$key2 = BackendUsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2); $key2 = BackendRolPeer::getPrimaryKeyHashFromRow($row, $startcol2);
if ($key2 !== null) { if ($key2 !== null) {
$obj2 = BackendUsuarioPeer::getInstanceFromPool($key2); $obj2 = BackendRolPeer::getInstanceFromPool($key2);
if (!$obj2) { if (!$obj2) {
$cls = BackendUsuarioPeer::getOMClass(); $cls = BackendRolPeer::getOMClass();
$obj2 = new $cls(); $obj2 = new $cls();
$obj2->hydrate($row, $startcol2); $obj2->hydrate($row, $startcol2);
BackendUsuarioPeer::addInstanceToPool($obj2, $key2); BackendRolPeer::addInstanceToPool($obj2, $key2);
} // if $obj2 already loaded } // if $obj2 already loaded
// Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj2 (BackendUsuario) // Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj2 (BackendRol)
$obj2->addBackendusuarioBackendrol($obj1); $obj2->addBackendusuarioBackendrol($obj1);
} // if joined row is not null } // if joined row is not null
...@@ -1032,7 +1032,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -1032,7 +1032,7 @@ abstract class BaseBackendusuarioBackendrolPeer
/** /**
* Selects a collection of BackendusuarioBackendrol objects pre-filled with all related objects except BackendUsuario. * Selects a collection of BackendusuarioBackendrol objects pre-filled with all related objects except BackendRol.
* *
* @param Criteria $criteria * @param Criteria $criteria
* @param PropelPDO $con * @param PropelPDO $con
...@@ -1041,7 +1041,7 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -1041,7 +1041,7 @@ abstract class BaseBackendusuarioBackendrolPeer
* @throws PropelException Any exceptions caught during processing will be * @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException. * rethrown wrapped into a PropelException.
*/ */
public static function doSelectJoinAllExceptBackendUsuario(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN) public static function doSelectJoinAllExceptBackendRol(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{ {
$criteria = clone $criteria; $criteria = clone $criteria;
...@@ -1055,10 +1055,10 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -1055,10 +1055,10 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addSelectColumns($criteria); BackendusuarioBackendrolPeer::addSelectColumns($criteria);
$startcol2 = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS; $startcol2 = BackendusuarioBackendrolPeer::NUM_HYDRATE_COLUMNS;
BackendRolPeer::addSelectColumns($criteria); BackendUsuarioPeer::addSelectColumns($criteria);
$startcol3 = $startcol2 + BackendRolPeer::NUM_HYDRATE_COLUMNS; $startcol3 = $startcol2 + BackendUsuarioPeer::NUM_HYDRATE_COLUMNS;
$criteria->addJoin(BackendusuarioBackendrolPeer::BRO_ID, BackendRolPeer::BRO_ID, $join_behavior); $criteria->addJoin(BackendusuarioBackendrolPeer::BUS_ID, BackendUsuarioPeer::BUS_ID, $join_behavior);
$stmt = BasePeer::doSelect($criteria, $con); $stmt = BasePeer::doSelect($criteria, $con);
...@@ -1078,21 +1078,21 @@ abstract class BaseBackendusuarioBackendrolPeer ...@@ -1078,21 +1078,21 @@ abstract class BaseBackendusuarioBackendrolPeer
BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1); BackendusuarioBackendrolPeer::addInstanceToPool($obj1, $key1);
} // if obj1 already loaded } // if obj1 already loaded
// Add objects for joined BackendRol rows // Add objects for joined BackendUsuario rows
$key2 = BackendRolPeer::getPrimaryKeyHashFromRow($row, $startcol2); $key2 = BackendUsuarioPeer::getPrimaryKeyHashFromRow($row, $startcol2);
if ($key2 !== null) { if ($key2 !== null) {
$obj2 = BackendRolPeer::getInstanceFromPool($key2); $obj2 = BackendUsuarioPeer::getInstanceFromPool($key2);
if (!$obj2) { if (!$obj2) {
$cls = BackendRolPeer::getOMClass(); $cls = BackendUsuarioPeer::getOMClass();
$obj2 = new $cls(); $obj2 = new $cls();
$obj2->hydrate($row, $startcol2); $obj2->hydrate($row, $startcol2);
BackendRolPeer::addInstanceToPool($obj2, $key2); BackendUsuarioPeer::addInstanceToPool($obj2, $key2);
} // if $obj2 already loaded } // if $obj2 already loaded
// Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj2 (BackendRol) // Add the $obj1 (BackendusuarioBackendrol) to the collection in $obj2 (BackendUsuario)
$obj2->addBackendusuarioBackendrol($obj1); $obj2->addBackendusuarioBackendrol($obj1);
} // if joined row is not null } // if joined row is not null
......
...@@ -33,14 +33,14 @@ use AppBundle\Model\BackendusuarioBackendrolQuery; ...@@ -33,14 +33,14 @@ use AppBundle\Model\BackendusuarioBackendrolQuery;
* @method BackendusuarioBackendrolQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query * @method BackendusuarioBackendrolQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
* @method BackendusuarioBackendrolQuery innerJoin($relation) Adds a INNER JOIN clause to the query * @method BackendusuarioBackendrolQuery innerJoin($relation) Adds a INNER JOIN clause to the query
* *
* @method BackendusuarioBackendrolQuery leftJoinBackendRol($relationAlias = null) Adds a LEFT JOIN clause to the query using the BackendRol relation
* @method BackendusuarioBackendrolQuery rightJoinBackendRol($relationAlias = null) Adds a RIGHT JOIN clause to the query using the BackendRol relation
* @method BackendusuarioBackendrolQuery innerJoinBackendRol($relationAlias = null) Adds a INNER JOIN clause to the query using the BackendRol relation
*
* @method BackendusuarioBackendrolQuery leftJoinBackendUsuario($relationAlias = null) Adds a LEFT JOIN clause to the query using the BackendUsuario relation * @method BackendusuarioBackendrolQuery leftJoinBackendUsuario($relationAlias = null) Adds a LEFT JOIN clause to the query using the BackendUsuario relation
* @method BackendusuarioBackendrolQuery rightJoinBackendUsuario($relationAlias = null) Adds a RIGHT JOIN clause to the query using the BackendUsuario relation * @method BackendusuarioBackendrolQuery rightJoinBackendUsuario($relationAlias = null) Adds a RIGHT JOIN clause to the query using the BackendUsuario relation
* @method BackendusuarioBackendrolQuery innerJoinBackendUsuario($relationAlias = null) Adds a INNER JOIN clause to the query using the BackendUsuario relation * @method BackendusuarioBackendrolQuery innerJoinBackendUsuario($relationAlias = null) Adds a INNER JOIN clause to the query using the BackendUsuario relation
* *
* @method BackendusuarioBackendrolQuery leftJoinBackendRol($relationAlias = null) Adds a LEFT JOIN clause to the query using the BackendRol relation
* @method BackendusuarioBackendrolQuery rightJoinBackendRol($relationAlias = null) Adds a RIGHT JOIN clause to the query using the BackendRol relation
* @method BackendusuarioBackendrolQuery innerJoinBackendRol($relationAlias = null) Adds a INNER JOIN clause to the query using the BackendRol relation
*
* @method BackendusuarioBackendrol findOne(PropelPDO $con = null) Return the first BackendusuarioBackendrol matching the query * @method BackendusuarioBackendrol findOne(PropelPDO $con = null) Return the first BackendusuarioBackendrol matching the query
* @method BackendusuarioBackendrol findOneOrCreate(PropelPDO $con = null) Return the first BackendusuarioBackendrol matching the query, or a new BackendusuarioBackendrol object populated from the query conditions when no match is found * @method BackendusuarioBackendrol findOneOrCreate(PropelPDO $con = null) Return the first BackendusuarioBackendrol matching the query, or a new BackendusuarioBackendrol object populated from the query conditions when no match is found
* *
...@@ -421,43 +421,43 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria ...@@ -421,43 +421,43 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria
} }
/** /**
* Filter the query by a related BackendRol object * Filter the query by a related BackendUsuario object
* *
* @param BackendRol|PropelObjectCollection $backendRol The related object(s) to use as filter * @param BackendUsuario|PropelObjectCollection $backendUsuario The related object(s) to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
* *
* @return BackendusuarioBackendrolQuery The current query, for fluid interface * @return BackendusuarioBackendrolQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid. * @throws PropelException - if the provided filter is invalid.
*/ */
public function filterByBackendRol($backendRol, $comparison = null) public function filterByBackendUsuario($backendUsuario, $comparison = null)
{ {
if ($backendRol instanceof BackendRol) { if ($backendUsuario instanceof BackendUsuario) {
return $this return $this
->addUsingAlias(BackendusuarioBackendrolPeer::BRO_ID, $backendRol->getBroId(), $comparison); ->addUsingAlias(BackendusuarioBackendrolPeer::BUS_ID, $backendUsuario->getBusId(), $comparison);
} elseif ($backendRol instanceof PropelObjectCollection) { } elseif ($backendUsuario instanceof PropelObjectCollection) {
if (null === $comparison) { if (null === $comparison) {
$comparison = Criteria::IN; $comparison = Criteria::IN;
} }
return $this return $this
->addUsingAlias(BackendusuarioBackendrolPeer::BRO_ID, $backendRol->toKeyValue('PrimaryKey', 'BroId'), $comparison); ->addUsingAlias(BackendusuarioBackendrolPeer::BUS_ID, $backendUsuario->toKeyValue('PrimaryKey', 'BusId'), $comparison);
} else { } else {
throw new PropelException('filterByBackendRol() only accepts arguments of type BackendRol or PropelCollection'); throw new PropelException('filterByBackendUsuario() only accepts arguments of type BackendUsuario or PropelCollection');
} }
} }
/** /**
* Adds a JOIN clause to the query using the BackendRol relation * Adds a JOIN clause to the query using the BackendUsuario relation
* *
* @param string $relationAlias optional alias for the relation * @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
* *
* @return BackendusuarioBackendrolQuery The current query, for fluid interface * @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/ */
public function joinBackendRol($relationAlias = null, $joinType = Criteria::INNER_JOIN) public function joinBackendUsuario($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{ {
$tableMap = $this->getTableMap(); $tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('BackendRol'); $relationMap = $tableMap->getRelation('BackendUsuario');
// create a ModelJoin object for this join // create a ModelJoin object for this join
$join = new ModelJoin(); $join = new ModelJoin();
...@@ -472,14 +472,14 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria ...@@ -472,14 +472,14 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias); $this->addJoinObject($join, $relationAlias);
} else { } else {
$this->addJoinObject($join, 'BackendRol'); $this->addJoinObject($join, 'BackendUsuario');
} }
return $this; return $this;
} }
/** /**
* Use the BackendRol relation BackendRol object * Use the BackendUsuario relation BackendUsuario object
* *
* @see useQuery() * @see useQuery()
* *
...@@ -487,53 +487,53 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria ...@@ -487,53 +487,53 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria
* to be used as main alias in the secondary query * to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
* *
* @return \AppBundle\Model\BackendRolQuery A secondary query class using the current class as primary query * @return \AppBundle\Model\BackendUsuarioQuery A secondary query class using the current class as primary query
*/ */
public function useBackendRolQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) public function useBackendUsuarioQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{ {
return $this return $this
->joinBackendRol($relationAlias, $joinType) ->joinBackendUsuario($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'BackendRol', '\AppBundle\Model\BackendRolQuery'); ->useQuery($relationAlias ? $relationAlias : 'BackendUsuario', '\AppBundle\Model\BackendUsuarioQuery');
} }
/** /**
* Filter the query by a related BackendUsuario object * Filter the query by a related BackendRol object
* *
* @param BackendUsuario|PropelObjectCollection $backendUsuario The related object(s) to use as filter * @param BackendRol|PropelObjectCollection $backendRol The related object(s) to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
* *
* @return BackendusuarioBackendrolQuery The current query, for fluid interface * @return BackendusuarioBackendrolQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid. * @throws PropelException - if the provided filter is invalid.
*/ */
public function filterByBackendUsuario($backendUsuario, $comparison = null) public function filterByBackendRol($backendRol, $comparison = null)
{ {
if ($backendUsuario instanceof BackendUsuario) { if ($backendRol instanceof BackendRol) {
return $this return $this
->addUsingAlias(BackendusuarioBackendrolPeer::BUS_ID, $backendUsuario->getBusId(), $comparison); ->addUsingAlias(BackendusuarioBackendrolPeer::BRO_ID, $backendRol->getBroId(), $comparison);
} elseif ($backendUsuario instanceof PropelObjectCollection) { } elseif ($backendRol instanceof PropelObjectCollection) {
if (null === $comparison) { if (null === $comparison) {
$comparison = Criteria::IN; $comparison = Criteria::IN;
} }
return $this return $this
->addUsingAlias(BackendusuarioBackendrolPeer::BUS_ID, $backendUsuario->toKeyValue('PrimaryKey', 'BusId'), $comparison); ->addUsingAlias(BackendusuarioBackendrolPeer::BRO_ID, $backendRol->toKeyValue('PrimaryKey', 'BroId'), $comparison);
} else { } else {
throw new PropelException('filterByBackendUsuario() only accepts arguments of type BackendUsuario or PropelCollection'); throw new PropelException('filterByBackendRol() only accepts arguments of type BackendRol or PropelCollection');
} }
} }
/** /**
* Adds a JOIN clause to the query using the BackendUsuario relation * Adds a JOIN clause to the query using the BackendRol relation
* *
* @param string $relationAlias optional alias for the relation * @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
* *
* @return BackendusuarioBackendrolQuery The current query, for fluid interface * @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/ */
public function joinBackendUsuario($relationAlias = null, $joinType = Criteria::INNER_JOIN) public function joinBackendRol($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{ {
$tableMap = $this->getTableMap(); $tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('BackendUsuario'); $relationMap = $tableMap->getRelation('BackendRol');
// create a ModelJoin object for this join // create a ModelJoin object for this join
$join = new ModelJoin(); $join = new ModelJoin();
...@@ -548,14 +548,14 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria ...@@ -548,14 +548,14 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias); $this->addJoinObject($join, $relationAlias);
} else { } else {
$this->addJoinObject($join, 'BackendUsuario'); $this->addJoinObject($join, 'BackendRol');
} }
return $this; return $this;
} }
/** /**
* Use the BackendUsuario relation BackendUsuario object * Use the BackendRol relation BackendRol object
* *
* @see useQuery() * @see useQuery()
* *
...@@ -563,13 +563,13 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria ...@@ -563,13 +563,13 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria
* to be used as main alias in the secondary query * to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
* *
* @return \AppBundle\Model\BackendUsuarioQuery A secondary query class using the current class as primary query * @return \AppBundle\Model\BackendRolQuery A secondary query class using the current class as primary query
*/ */
public function useBackendUsuarioQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) public function useBackendRolQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{ {
return $this return $this
->joinBackendUsuario($relationAlias, $joinType) ->joinBackendRol($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'BackendUsuario', '\AppBundle\Model\BackendUsuarioQuery'); ->useQuery($relationAlias ? $relationAlias : 'BackendRol', '\AppBundle\Model\BackendRolQuery');
} }
/** /**
...@@ -590,4 +590,69 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria ...@@ -590,4 +590,69 @@ abstract class BaseBackendusuarioBackendrolQuery extends ModelCriteria
return $this; return $this;
} }
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(BackendusuarioBackendrolPeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(BackendusuarioBackendrolPeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(BackendusuarioBackendrolPeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(BackendusuarioBackendrolPeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(BackendusuarioBackendrolPeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return BackendusuarioBackendrolQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(BackendusuarioBackendrolPeer::CREATED_AT);
}
} }
...@@ -1023,8 +1023,19 @@ abstract class BaseBatchsms extends BaseObject implements Persistent ...@@ -1023,8 +1023,19 @@ abstract class BaseBatchsms extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(BatchsmsPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -2140,4 +2151,18 @@ abstract class BaseBatchsms extends BaseObject implements Persistent ...@@ -2140,4 +2151,18 @@ abstract class BaseBatchsms extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -1130,4 +1130,69 @@ abstract class BaseBatchsmsQuery extends ModelCriteria
return $this; 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 ...@@ -1023,8 +1023,19 @@ abstract class BaseEmailing extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(EmailingPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -2140,4 +2151,18 @@ abstract class BaseEmailing extends BaseObject implements Persistent ...@@ -2140,4 +2151,18 @@ abstract class BaseEmailing extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -1130,4 +1130,69 @@ abstract class BaseEmailingQuery extends ModelCriteria
return $this; 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 ...@@ -1053,8 +1053,19 @@ abstract class BaseEnvioEmail extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(EnvioEmailPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -2563,4 +2574,18 @@ abstract class BaseEnvioEmail extends BaseObject implements Persistent ...@@ -2563,4 +2574,18 @@ abstract class BaseEnvioEmail extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -1207,4 +1207,69 @@ abstract class BaseEnvioEmailQuery extends ModelCriteria
return $this; 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 ...@@ -817,8 +817,19 @@ abstract class BaseMcafeeTransaccion extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(McafeeTransaccionPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -1622,4 +1633,18 @@ abstract class BaseMcafeeTransaccion extends BaseObject implements Persistent ...@@ -1622,4 +1633,18 @@ abstract class BaseMcafeeTransaccion extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -583,8 +583,19 @@ abstract class BaseMcafeeTransaccionPendiente extends BaseObject implements Pers
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(McafeeTransaccionPendientePeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -1286,4 +1297,18 @@ abstract class BaseMcafeeTransaccionPendiente extends BaseObject implements Pers ...@@ -1286,4 +1297,18 @@ abstract class BaseMcafeeTransaccionPendiente extends BaseObject implements Pers
return $this->alreadyInSave; 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 ...@@ -643,4 +643,69 @@ abstract class BaseMcafeeTransaccionPendienteQuery extends ModelCriteria
return $this; 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 ...@@ -828,4 +828,69 @@ abstract class BaseMcafeeTransaccionQuery extends ModelCriteria
return $this; 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 ...@@ -544,8 +544,19 @@ abstract class BaseMcafeeUltimoProcesoMigracion extends BaseObject implements Pe
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(McafeeUltimoProcesoMigracionPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -1230,4 +1241,18 @@ abstract class BaseMcafeeUltimoProcesoMigracion extends BaseObject implements Pe ...@@ -1230,4 +1241,18 @@ abstract class BaseMcafeeUltimoProcesoMigracion extends BaseObject implements Pe
return $this->alreadyInSave; 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 ...@@ -597,4 +597,69 @@ abstract class BaseMcafeeUltimoProcesoMigracionQuery extends ModelCriteria
return $this; 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 ...@@ -1339,8 +1339,19 @@ abstract class BaseNotificacionEmail extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(NotificacionEmailPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -2314,4 +2325,18 @@ abstract class BaseNotificacionEmail extends BaseObject implements Persistent ...@@ -2314,4 +2325,18 @@ abstract class BaseNotificacionEmail extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -1199,4 +1199,69 @@ abstract class BaseNotificacionEmailQuery extends ModelCriteria
return $this; 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 ...@@ -980,8 +980,19 @@ abstract class BaseSms extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(SmsPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -1891,4 +1902,18 @@ abstract class BaseSms extends BaseObject implements Persistent ...@@ -1891,4 +1902,18 @@ abstract class BaseSms extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -1016,4 +1016,69 @@ abstract class BaseSmsQuery extends ModelCriteria
return $this; 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 ...@@ -918,8 +918,19 @@ abstract class BaseTracking extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $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 { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(TrackingPeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -1829,4 +1840,18 @@ abstract class BaseTracking extends BaseObject implements Persistent ...@@ -1829,4 +1840,18 @@ abstract class BaseTracking extends BaseObject implements Persistent
return $this->alreadyInSave; 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 ...@@ -988,4 +988,69 @@ abstract class BaseTrackingQuery extends ModelCriteria
return $this; 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);
}
} }
...@@ -21,6 +21,8 @@ use AppBundle\Model\McafeeTransaccion; ...@@ -21,6 +21,8 @@ use AppBundle\Model\McafeeTransaccion;
use AppBundle\Model\McafeeTransaccionPendiente; use AppBundle\Model\McafeeTransaccionPendiente;
use AppBundle\Model\McafeeTransaccionPendienteQuery; use AppBundle\Model\McafeeTransaccionPendienteQuery;
use AppBundle\Model\McafeeTransaccionQuery; use AppBundle\Model\McafeeTransaccionQuery;
use AppBundle\Model\McafeeUltimoProcesoNormalizacion;
use AppBundle\Model\McafeeUltimoProcesoNormalizacionQuery;
use AppBundle\Model\Sms; use AppBundle\Model\Sms;
use AppBundle\Model\SmsQuery; use AppBundle\Model\SmsQuery;
use AppBundle\Model\Tracking; use AppBundle\Model\Tracking;
...@@ -147,6 +149,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -147,6 +149,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
*/ */
protected $umc_movil; protected $umc_movil;
/**
* The value for the umc_fijo field.
* @var string
*/
protected $umc_fijo;
/** /**
* The value for the umc_customer_id field. * The value for the umc_customer_id field.
* @var string * @var string
...@@ -196,6 +204,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -196,6 +204,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
protected $collMcafeeTransaccionPendientes; protected $collMcafeeTransaccionPendientes;
protected $collMcafeeTransaccionPendientesPartial; protected $collMcafeeTransaccionPendientesPartial;
/**
* @var PropelObjectCollection|McafeeUltimoProcesoNormalizacion[] Collection to store aggregation of McafeeUltimoProcesoNormalizacion objects.
*/
protected $collMcafeeUltimoProcesoNormalizacions;
protected $collMcafeeUltimoProcesoNormalizacionsPartial;
/** /**
* @var PropelObjectCollection|Sms[] Collection to store aggregation of Sms objects. * @var PropelObjectCollection|Sms[] Collection to store aggregation of Sms objects.
*/ */
...@@ -246,6 +260,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -246,6 +260,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
*/ */
protected $mcafeeTransaccionPendientesScheduledForDeletion = null; protected $mcafeeTransaccionPendientesScheduledForDeletion = null;
/**
* An array of objects scheduled for deletion.
* @var PropelObjectCollection
*/
protected $mcafeeUltimoProcesoNormalizacionsScheduledForDeletion = null;
/** /**
* An array of objects scheduled for deletion. * An array of objects scheduled for deletion.
* @var PropelObjectCollection * @var PropelObjectCollection
...@@ -485,6 +505,17 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -485,6 +505,17 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
return $this->umc_movil; return $this->umc_movil;
} }
/**
* Get the [umc_fijo] column value.
*
* @return string
*/
public function getUmcFijo()
{
return $this->umc_fijo;
}
/** /**
* Get the [umc_customer_id] column value. * Get the [umc_customer_id] column value.
* *
...@@ -952,6 +983,27 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -952,6 +983,27 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
return $this; return $this;
} // setUmcMovil() } // setUmcMovil()
/**
* Set the value of [umc_fijo] column.
*
* @param string $v new value
* @return UsuarioMcafee The current object (for fluent API support)
*/
public function setUmcFijo($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->umc_fijo !== $v) {
$this->umc_fijo = $v;
$this->modifiedColumns[] = UsuarioMcafeePeer::UMC_FIJO;
}
return $this;
} // setUmcFijo()
/** /**
* Set the value of [umc_customer_id] column. * Set the value of [umc_customer_id] column.
* *
...@@ -1133,11 +1185,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1133,11 +1185,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$this->umc_permite_email = ($row[$startcol + 13] !== null) ? (boolean) $row[$startcol + 13] : null; $this->umc_permite_email = ($row[$startcol + 13] !== null) ? (boolean) $row[$startcol + 13] : null;
$this->umc_fecha_desuscripcion_email = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null; $this->umc_fecha_desuscripcion_email = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null;
$this->umc_movil = ($row[$startcol + 15] !== null) ? (string) $row[$startcol + 15] : null; $this->umc_movil = ($row[$startcol + 15] !== null) ? (string) $row[$startcol + 15] : null;
$this->umc_customer_id = ($row[$startcol + 16] !== null) ? (string) $row[$startcol + 16] : null; $this->umc_fijo = ($row[$startcol + 16] !== null) ? (string) $row[$startcol + 16] : null;
$this->umc_eliminado = ($row[$startcol + 17] !== null) ? (boolean) $row[$startcol + 17] : null; $this->umc_customer_id = ($row[$startcol + 17] !== null) ? (string) $row[$startcol + 17] : null;
$this->umc_permite_sms = ($row[$startcol + 18] !== null) ? (boolean) $row[$startcol + 18] : null; $this->umc_eliminado = ($row[$startcol + 18] !== null) ? (boolean) $row[$startcol + 18] : null;
$this->created_at = ($row[$startcol + 19] !== null) ? (string) $row[$startcol + 19] : null; $this->umc_permite_sms = ($row[$startcol + 19] !== null) ? (boolean) $row[$startcol + 19] : null;
$this->updated_at = ($row[$startcol + 20] !== null) ? (string) $row[$startcol + 20] : null; $this->created_at = ($row[$startcol + 20] !== null) ? (string) $row[$startcol + 20] : null;
$this->updated_at = ($row[$startcol + 21] !== null) ? (string) $row[$startcol + 21] : null;
$this->resetModified(); $this->resetModified();
$this->setNew(false); $this->setNew(false);
...@@ -1147,7 +1200,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1147,7 +1200,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
} }
$this->postHydrate($row, $startcol, $rehydrate); $this->postHydrate($row, $startcol, $rehydrate);
return $startcol + 21; // 21 = UsuarioMcafeePeer::NUM_HYDRATE_COLUMNS. return $startcol + 22; // 22 = UsuarioMcafeePeer::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) { } catch (Exception $e) {
throw new PropelException("Error populating UsuarioMcafee object", $e); throw new PropelException("Error populating UsuarioMcafee object", $e);
...@@ -1215,6 +1268,8 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1215,6 +1268,8 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$this->collMcafeeTransaccionPendientes = null; $this->collMcafeeTransaccionPendientes = null;
$this->collMcafeeUltimoProcesoNormalizacions = null;
$this->collSmss = null; $this->collSmss = null;
$this->collTrackings = null; $this->collTrackings = null;
...@@ -1291,8 +1346,19 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1291,8 +1346,19 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$ret = $this->preSave($con); $ret = $this->preSave($con);
if ($isInsert) { if ($isInsert) {
$ret = $ret && $this->preInsert($con); $ret = $ret && $this->preInsert($con);
// timestampable behavior
if (!$this->isColumnModified(UsuarioMcafeePeer::CREATED_AT)) {
$this->setCreatedAt(time());
}
if (!$this->isColumnModified(UsuarioMcafeePeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} else { } else {
$ret = $ret && $this->preUpdate($con); $ret = $ret && $this->preUpdate($con);
// timestampable behavior
if ($this->isModified() && !$this->isColumnModified(UsuarioMcafeePeer::UPDATED_AT)) {
$this->setUpdatedAt(time());
}
} }
if ($ret) { if ($ret) {
$affectedRows = $this->doSave($con); $affectedRows = $this->doSave($con);
...@@ -1397,6 +1463,24 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1397,6 +1463,24 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
} }
} }
if ($this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion !== null) {
if (!$this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion->isEmpty()) {
foreach ($this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion as $mcafeeUltimoProcesoNormalizacion) {
// need to save related object because we set the relation to null
$mcafeeUltimoProcesoNormalizacion->save($con);
}
$this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion = null;
}
}
if ($this->collMcafeeUltimoProcesoNormalizacions !== null) {
foreach ($this->collMcafeeUltimoProcesoNormalizacions as $referrerFK) {
if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) {
$affectedRows += $referrerFK->save($con);
}
}
}
if ($this->smssScheduledForDeletion !== null) { if ($this->smssScheduledForDeletion !== null) {
if (!$this->smssScheduledForDeletion->isEmpty()) { if (!$this->smssScheduledForDeletion->isEmpty()) {
foreach ($this->smssScheduledForDeletion as $sms) { foreach ($this->smssScheduledForDeletion as $sms) {
...@@ -1507,6 +1591,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1507,6 +1591,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_MOVIL)) { if ($this->isColumnModified(UsuarioMcafeePeer::UMC_MOVIL)) {
$modifiedColumns[':p' . $index++] = '`umc_movil`'; $modifiedColumns[':p' . $index++] = '`umc_movil`';
} }
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_FIJO)) {
$modifiedColumns[':p' . $index++] = '`umc_fijo`';
}
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_CUSTOMER_ID)) { if ($this->isColumnModified(UsuarioMcafeePeer::UMC_CUSTOMER_ID)) {
$modifiedColumns[':p' . $index++] = '`umc_customer_id`'; $modifiedColumns[':p' . $index++] = '`umc_customer_id`';
} }
...@@ -1581,6 +1668,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1581,6 +1668,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
case '`umc_movil`': case '`umc_movil`':
$stmt->bindValue($identifier, $this->umc_movil, PDO::PARAM_STR); $stmt->bindValue($identifier, $this->umc_movil, PDO::PARAM_STR);
break; break;
case '`umc_fijo`':
$stmt->bindValue($identifier, $this->umc_fijo, PDO::PARAM_STR);
break;
case '`umc_customer_id`': case '`umc_customer_id`':
$stmt->bindValue($identifier, $this->umc_customer_id, PDO::PARAM_STR); $stmt->bindValue($identifier, $this->umc_customer_id, PDO::PARAM_STR);
break; break;
...@@ -1719,6 +1809,14 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1719,6 +1809,14 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
} }
} }
if ($this->collMcafeeUltimoProcesoNormalizacions !== null) {
foreach ($this->collMcafeeUltimoProcesoNormalizacions as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collSmss !== null) { if ($this->collSmss !== null) {
foreach ($this->collSmss as $referrerFK) { foreach ($this->collSmss as $referrerFK) {
if (!$referrerFK->validate($columns)) { if (!$referrerFK->validate($columns)) {
...@@ -1819,18 +1917,21 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1819,18 +1917,21 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
return $this->getUmcMovil(); return $this->getUmcMovil();
break; break;
case 16: case 16:
return $this->getUmcCustomerId(); return $this->getUmcFijo();
break; break;
case 17: case 17:
return $this->getUmcEliminado(); return $this->getUmcCustomerId();
break; break;
case 18: case 18:
return $this->getUmcPermiteSms(); return $this->getUmcEliminado();
break; break;
case 19: case 19:
return $this->getCreatedAt(); return $this->getUmcPermiteSms();
break; break;
case 20: case 20:
return $this->getCreatedAt();
break;
case 21:
return $this->getUpdatedAt(); return $this->getUpdatedAt();
break; break;
default: default:
...@@ -1878,11 +1979,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1878,11 +1979,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$keys[13] => $this->getUmcPermiteEmail(), $keys[13] => $this->getUmcPermiteEmail(),
$keys[14] => $this->getUmcFechaDesuscripcionEmail(), $keys[14] => $this->getUmcFechaDesuscripcionEmail(),
$keys[15] => $this->getUmcMovil(), $keys[15] => $this->getUmcMovil(),
$keys[16] => $this->getUmcCustomerId(), $keys[16] => $this->getUmcFijo(),
$keys[17] => $this->getUmcEliminado(), $keys[17] => $this->getUmcCustomerId(),
$keys[18] => $this->getUmcPermiteSms(), $keys[18] => $this->getUmcEliminado(),
$keys[19] => $this->getCreatedAt(), $keys[19] => $this->getUmcPermiteSms(),
$keys[20] => $this->getUpdatedAt(), $keys[20] => $this->getCreatedAt(),
$keys[21] => $this->getUpdatedAt(),
); );
$virtualColumns = $this->virtualColumns; $virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) { foreach ($virtualColumns as $key => $virtualColumn) {
...@@ -1899,6 +2001,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1899,6 +2001,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
if (null !== $this->collMcafeeTransaccionPendientes) { if (null !== $this->collMcafeeTransaccionPendientes) {
$result['McafeeTransaccionPendientes'] = $this->collMcafeeTransaccionPendientes->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); $result['McafeeTransaccionPendientes'] = $this->collMcafeeTransaccionPendientes->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
} }
if (null !== $this->collMcafeeUltimoProcesoNormalizacions) {
$result['McafeeUltimoProcesoNormalizacions'] = $this->collMcafeeUltimoProcesoNormalizacions->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
}
if (null !== $this->collSmss) { if (null !== $this->collSmss) {
$result['Smss'] = $this->collSmss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); $result['Smss'] = $this->collSmss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
} }
...@@ -1988,18 +2093,21 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -1988,18 +2093,21 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$this->setUmcMovil($value); $this->setUmcMovil($value);
break; break;
case 16: case 16:
$this->setUmcCustomerId($value); $this->setUmcFijo($value);
break; break;
case 17: case 17:
$this->setUmcEliminado($value); $this->setUmcCustomerId($value);
break; break;
case 18: case 18:
$this->setUmcPermiteSms($value); $this->setUmcEliminado($value);
break; break;
case 19: case 19:
$this->setCreatedAt($value); $this->setUmcPermiteSms($value);
break; break;
case 20: case 20:
$this->setCreatedAt($value);
break;
case 21:
$this->setUpdatedAt($value); $this->setUpdatedAt($value);
break; break;
} // switch() } // switch()
...@@ -2042,11 +2150,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -2042,11 +2150,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
if (array_key_exists($keys[13], $arr)) $this->setUmcPermiteEmail($arr[$keys[13]]); if (array_key_exists($keys[13], $arr)) $this->setUmcPermiteEmail($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setUmcFechaDesuscripcionEmail($arr[$keys[14]]); if (array_key_exists($keys[14], $arr)) $this->setUmcFechaDesuscripcionEmail($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setUmcMovil($arr[$keys[15]]); if (array_key_exists($keys[15], $arr)) $this->setUmcMovil($arr[$keys[15]]);
if (array_key_exists($keys[16], $arr)) $this->setUmcCustomerId($arr[$keys[16]]); if (array_key_exists($keys[16], $arr)) $this->setUmcFijo($arr[$keys[16]]);
if (array_key_exists($keys[17], $arr)) $this->setUmcEliminado($arr[$keys[17]]); if (array_key_exists($keys[17], $arr)) $this->setUmcCustomerId($arr[$keys[17]]);
if (array_key_exists($keys[18], $arr)) $this->setUmcPermiteSms($arr[$keys[18]]); if (array_key_exists($keys[18], $arr)) $this->setUmcEliminado($arr[$keys[18]]);
if (array_key_exists($keys[19], $arr)) $this->setCreatedAt($arr[$keys[19]]); if (array_key_exists($keys[19], $arr)) $this->setUmcPermiteSms($arr[$keys[19]]);
if (array_key_exists($keys[20], $arr)) $this->setUpdatedAt($arr[$keys[20]]); if (array_key_exists($keys[20], $arr)) $this->setCreatedAt($arr[$keys[20]]);
if (array_key_exists($keys[21], $arr)) $this->setUpdatedAt($arr[$keys[21]]);
} }
/** /**
...@@ -2074,6 +2183,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -2074,6 +2183,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_PERMITE_EMAIL)) $criteria->add(UsuarioMcafeePeer::UMC_PERMITE_EMAIL, $this->umc_permite_email); if ($this->isColumnModified(UsuarioMcafeePeer::UMC_PERMITE_EMAIL)) $criteria->add(UsuarioMcafeePeer::UMC_PERMITE_EMAIL, $this->umc_permite_email);
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL)) $criteria->add(UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL, $this->umc_fecha_desuscripcion_email); if ($this->isColumnModified(UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL)) $criteria->add(UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL, $this->umc_fecha_desuscripcion_email);
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_MOVIL)) $criteria->add(UsuarioMcafeePeer::UMC_MOVIL, $this->umc_movil); if ($this->isColumnModified(UsuarioMcafeePeer::UMC_MOVIL)) $criteria->add(UsuarioMcafeePeer::UMC_MOVIL, $this->umc_movil);
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_FIJO)) $criteria->add(UsuarioMcafeePeer::UMC_FIJO, $this->umc_fijo);
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_CUSTOMER_ID)) $criteria->add(UsuarioMcafeePeer::UMC_CUSTOMER_ID, $this->umc_customer_id); if ($this->isColumnModified(UsuarioMcafeePeer::UMC_CUSTOMER_ID)) $criteria->add(UsuarioMcafeePeer::UMC_CUSTOMER_ID, $this->umc_customer_id);
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_ELIMINADO)) $criteria->add(UsuarioMcafeePeer::UMC_ELIMINADO, $this->umc_eliminado); if ($this->isColumnModified(UsuarioMcafeePeer::UMC_ELIMINADO)) $criteria->add(UsuarioMcafeePeer::UMC_ELIMINADO, $this->umc_eliminado);
if ($this->isColumnModified(UsuarioMcafeePeer::UMC_PERMITE_SMS)) $criteria->add(UsuarioMcafeePeer::UMC_PERMITE_SMS, $this->umc_permite_sms); if ($this->isColumnModified(UsuarioMcafeePeer::UMC_PERMITE_SMS)) $criteria->add(UsuarioMcafeePeer::UMC_PERMITE_SMS, $this->umc_permite_sms);
...@@ -2157,6 +2267,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -2157,6 +2267,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$copyObj->setUmcPermiteEmail($this->getUmcPermiteEmail()); $copyObj->setUmcPermiteEmail($this->getUmcPermiteEmail());
$copyObj->setUmcFechaDesuscripcionEmail($this->getUmcFechaDesuscripcionEmail()); $copyObj->setUmcFechaDesuscripcionEmail($this->getUmcFechaDesuscripcionEmail());
$copyObj->setUmcMovil($this->getUmcMovil()); $copyObj->setUmcMovil($this->getUmcMovil());
$copyObj->setUmcFijo($this->getUmcFijo());
$copyObj->setUmcCustomerId($this->getUmcCustomerId()); $copyObj->setUmcCustomerId($this->getUmcCustomerId());
$copyObj->setUmcEliminado($this->getUmcEliminado()); $copyObj->setUmcEliminado($this->getUmcEliminado());
$copyObj->setUmcPermiteSms($this->getUmcPermiteSms()); $copyObj->setUmcPermiteSms($this->getUmcPermiteSms());
...@@ -2188,6 +2299,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -2188,6 +2299,12 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
} }
} }
foreach ($this->getMcafeeUltimoProcesoNormalizacions() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addMcafeeUltimoProcesoNormalizacion($relObj->copy($deepCopy));
}
}
foreach ($this->getSmss() as $relObj) { foreach ($this->getSmss() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addSms($relObj->copy($deepCopy)); $copyObj->addSms($relObj->copy($deepCopy));
...@@ -2270,6 +2387,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -2270,6 +2387,9 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
if ('McafeeTransaccionPendiente' == $relationName) { if ('McafeeTransaccionPendiente' == $relationName) {
$this->initMcafeeTransaccionPendientes(); $this->initMcafeeTransaccionPendientes();
} }
if ('McafeeUltimoProcesoNormalizacion' == $relationName) {
$this->initMcafeeUltimoProcesoNormalizacions();
}
if ('Sms' == $relationName) { if ('Sms' == $relationName) {
$this->initSmss(); $this->initSmss();
} }
...@@ -2978,6 +3098,231 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -2978,6 +3098,231 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
return $this; return $this;
} }
/**
* Clears out the collMcafeeUltimoProcesoNormalizacions collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return UsuarioMcafee The current object (for fluent API support)
* @see addMcafeeUltimoProcesoNormalizacions()
*/
public function clearMcafeeUltimoProcesoNormalizacions()
{
$this->collMcafeeUltimoProcesoNormalizacions = null; // important to set this to null since that means it is uninitialized
$this->collMcafeeUltimoProcesoNormalizacionsPartial = null;
return $this;
}
/**
* reset is the collMcafeeUltimoProcesoNormalizacions collection loaded partially
*
* @return void
*/
public function resetPartialMcafeeUltimoProcesoNormalizacions($v = true)
{
$this->collMcafeeUltimoProcesoNormalizacionsPartial = $v;
}
/**
* Initializes the collMcafeeUltimoProcesoNormalizacions collection.
*
* By default this just sets the collMcafeeUltimoProcesoNormalizacions collection to an empty array (like clearcollMcafeeUltimoProcesoNormalizacions());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @param boolean $overrideExisting If set to true, the method call initializes
* the collection even if it is not empty
*
* @return void
*/
public function initMcafeeUltimoProcesoNormalizacions($overrideExisting = true)
{
if (null !== $this->collMcafeeUltimoProcesoNormalizacions && !$overrideExisting) {
return;
}
$this->collMcafeeUltimoProcesoNormalizacions = new PropelObjectCollection();
$this->collMcafeeUltimoProcesoNormalizacions->setModel('McafeeUltimoProcesoNormalizacion');
}
/**
* Gets an array of McafeeUltimoProcesoNormalizacion objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this UsuarioMcafee is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelObjectCollection|McafeeUltimoProcesoNormalizacion[] List of McafeeUltimoProcesoNormalizacion objects
* @throws PropelException
*/
public function getMcafeeUltimoProcesoNormalizacions($criteria = null, PropelPDO $con = null)
{
$partial = $this->collMcafeeUltimoProcesoNormalizacionsPartial && !$this->isNew();
if (null === $this->collMcafeeUltimoProcesoNormalizacions || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collMcafeeUltimoProcesoNormalizacions) {
// return empty collection
$this->initMcafeeUltimoProcesoNormalizacions();
} else {
$collMcafeeUltimoProcesoNormalizacions = McafeeUltimoProcesoNormalizacionQuery::create(null, $criteria)
->filterByUsuarioMcafee($this)
->find($con);
if (null !== $criteria) {
if (false !== $this->collMcafeeUltimoProcesoNormalizacionsPartial && count($collMcafeeUltimoProcesoNormalizacions)) {
$this->initMcafeeUltimoProcesoNormalizacions(false);
foreach ($collMcafeeUltimoProcesoNormalizacions as $obj) {
if (false == $this->collMcafeeUltimoProcesoNormalizacions->contains($obj)) {
$this->collMcafeeUltimoProcesoNormalizacions->append($obj);
}
}
$this->collMcafeeUltimoProcesoNormalizacionsPartial = true;
}
$collMcafeeUltimoProcesoNormalizacions->getInternalIterator()->rewind();
return $collMcafeeUltimoProcesoNormalizacions;
}
if ($partial && $this->collMcafeeUltimoProcesoNormalizacions) {
foreach ($this->collMcafeeUltimoProcesoNormalizacions as $obj) {
if ($obj->isNew()) {
$collMcafeeUltimoProcesoNormalizacions[] = $obj;
}
}
}
$this->collMcafeeUltimoProcesoNormalizacions = $collMcafeeUltimoProcesoNormalizacions;
$this->collMcafeeUltimoProcesoNormalizacionsPartial = false;
}
}
return $this->collMcafeeUltimoProcesoNormalizacions;
}
/**
* Sets a collection of McafeeUltimoProcesoNormalizacion objects related by a one-to-many relationship
* to the current object.
* It will also schedule objects for deletion based on a diff between old objects (aka persisted)
* and new objects from the given Propel collection.
*
* @param PropelCollection $mcafeeUltimoProcesoNormalizacions A Propel collection.
* @param PropelPDO $con Optional connection object
* @return UsuarioMcafee The current object (for fluent API support)
*/
public function setMcafeeUltimoProcesoNormalizacions(PropelCollection $mcafeeUltimoProcesoNormalizacions, PropelPDO $con = null)
{
$mcafeeUltimoProcesoNormalizacionsToDelete = $this->getMcafeeUltimoProcesoNormalizacions(new Criteria(), $con)->diff($mcafeeUltimoProcesoNormalizacions);
$this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion = $mcafeeUltimoProcesoNormalizacionsToDelete;
foreach ($mcafeeUltimoProcesoNormalizacionsToDelete as $mcafeeUltimoProcesoNormalizacionRemoved) {
$mcafeeUltimoProcesoNormalizacionRemoved->setUsuarioMcafee(null);
}
$this->collMcafeeUltimoProcesoNormalizacions = null;
foreach ($mcafeeUltimoProcesoNormalizacions as $mcafeeUltimoProcesoNormalizacion) {
$this->addMcafeeUltimoProcesoNormalizacion($mcafeeUltimoProcesoNormalizacion);
}
$this->collMcafeeUltimoProcesoNormalizacions = $mcafeeUltimoProcesoNormalizacions;
$this->collMcafeeUltimoProcesoNormalizacionsPartial = false;
return $this;
}
/**
* Returns the number of related McafeeUltimoProcesoNormalizacion objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related McafeeUltimoProcesoNormalizacion objects.
* @throws PropelException
*/
public function countMcafeeUltimoProcesoNormalizacions(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
$partial = $this->collMcafeeUltimoProcesoNormalizacionsPartial && !$this->isNew();
if (null === $this->collMcafeeUltimoProcesoNormalizacions || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collMcafeeUltimoProcesoNormalizacions) {
return 0;
}
if ($partial && !$criteria) {
return count($this->getMcafeeUltimoProcesoNormalizacions());
}
$query = McafeeUltimoProcesoNormalizacionQuery::create(null, $criteria);
if ($distinct) {
$query->distinct();
}
return $query
->filterByUsuarioMcafee($this)
->count($con);
}
return count($this->collMcafeeUltimoProcesoNormalizacions);
}
/**
* Method called to associate a McafeeUltimoProcesoNormalizacion object to this object
* through the McafeeUltimoProcesoNormalizacion foreign key attribute.
*
* @param McafeeUltimoProcesoNormalizacion $l McafeeUltimoProcesoNormalizacion
* @return UsuarioMcafee The current object (for fluent API support)
*/
public function addMcafeeUltimoProcesoNormalizacion(McafeeUltimoProcesoNormalizacion $l)
{
if ($this->collMcafeeUltimoProcesoNormalizacions === null) {
$this->initMcafeeUltimoProcesoNormalizacions();
$this->collMcafeeUltimoProcesoNormalizacionsPartial = true;
}
if (!in_array($l, $this->collMcafeeUltimoProcesoNormalizacions->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
$this->doAddMcafeeUltimoProcesoNormalizacion($l);
if ($this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion and $this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion->contains($l)) {
$this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion->remove($this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion->search($l));
}
}
return $this;
}
/**
* @param McafeeUltimoProcesoNormalizacion $mcafeeUltimoProcesoNormalizacion The mcafeeUltimoProcesoNormalizacion object to add.
*/
protected function doAddMcafeeUltimoProcesoNormalizacion($mcafeeUltimoProcesoNormalizacion)
{
$this->collMcafeeUltimoProcesoNormalizacions[]= $mcafeeUltimoProcesoNormalizacion;
$mcafeeUltimoProcesoNormalizacion->setUsuarioMcafee($this);
}
/**
* @param McafeeUltimoProcesoNormalizacion $mcafeeUltimoProcesoNormalizacion The mcafeeUltimoProcesoNormalizacion object to remove.
* @return UsuarioMcafee The current object (for fluent API support)
*/
public function removeMcafeeUltimoProcesoNormalizacion($mcafeeUltimoProcesoNormalizacion)
{
if ($this->getMcafeeUltimoProcesoNormalizacions()->contains($mcafeeUltimoProcesoNormalizacion)) {
$this->collMcafeeUltimoProcesoNormalizacions->remove($this->collMcafeeUltimoProcesoNormalizacions->search($mcafeeUltimoProcesoNormalizacion));
if (null === $this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion) {
$this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion = clone $this->collMcafeeUltimoProcesoNormalizacions;
$this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion->clear();
}
$this->mcafeeUltimoProcesoNormalizacionsScheduledForDeletion[]= $mcafeeUltimoProcesoNormalizacion;
$mcafeeUltimoProcesoNormalizacion->setUsuarioMcafee(null);
}
return $this;
}
/** /**
* Clears out the collSmss collection * Clears out the collSmss collection
* *
...@@ -3499,6 +3844,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -3499,6 +3844,7 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$this->umc_permite_email = null; $this->umc_permite_email = null;
$this->umc_fecha_desuscripcion_email = null; $this->umc_fecha_desuscripcion_email = null;
$this->umc_movil = null; $this->umc_movil = null;
$this->umc_fijo = null;
$this->umc_customer_id = null; $this->umc_customer_id = null;
$this->umc_eliminado = null; $this->umc_eliminado = null;
$this->umc_permite_sms = null; $this->umc_permite_sms = null;
...@@ -3542,6 +3888,11 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -3542,6 +3888,11 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$o->clearAllReferences($deep); $o->clearAllReferences($deep);
} }
} }
if ($this->collMcafeeUltimoProcesoNormalizacions) {
foreach ($this->collMcafeeUltimoProcesoNormalizacions as $o) {
$o->clearAllReferences($deep);
}
}
if ($this->collSmss) { if ($this->collSmss) {
foreach ($this->collSmss as $o) { foreach ($this->collSmss as $o) {
$o->clearAllReferences($deep); $o->clearAllReferences($deep);
...@@ -3568,6 +3919,10 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -3568,6 +3919,10 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
$this->collMcafeeTransaccionPendientes->clearIterator(); $this->collMcafeeTransaccionPendientes->clearIterator();
} }
$this->collMcafeeTransaccionPendientes = null; $this->collMcafeeTransaccionPendientes = null;
if ($this->collMcafeeUltimoProcesoNormalizacions instanceof PropelCollection) {
$this->collMcafeeUltimoProcesoNormalizacions->clearIterator();
}
$this->collMcafeeUltimoProcesoNormalizacions = null;
if ($this->collSmss instanceof PropelCollection) { if ($this->collSmss instanceof PropelCollection) {
$this->collSmss->clearIterator(); $this->collSmss->clearIterator();
} }
...@@ -3598,4 +3953,18 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent ...@@ -3598,4 +3953,18 @@ abstract class BaseUsuarioMcafee extends BaseObject implements Persistent
return $this->alreadyInSave; return $this->alreadyInSave;
} }
// timestampable behavior
/**
* Mark the current object so that the update date doesn't get updated during next save
*
* @return UsuarioMcafee The current object (for fluent API support)
*/
public function keepUpdateDateUnchanged()
{
$this->modifiedColumns[] = UsuarioMcafeePeer::UPDATED_AT;
return $this;
}
} }
...@@ -29,13 +29,13 @@ abstract class BaseUsuarioMcafeePeer ...@@ -29,13 +29,13 @@ abstract class BaseUsuarioMcafeePeer
const TM_CLASS = 'AppBundle\\Model\\map\\UsuarioMcafeeTableMap'; const TM_CLASS = 'AppBundle\\Model\\map\\UsuarioMcafeeTableMap';
/** The total number of columns. */ /** The total number of columns. */
const NUM_COLUMNS = 21; const NUM_COLUMNS = 22;
/** The number of lazy-loaded columns. */ /** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0; const NUM_LAZY_LOAD_COLUMNS = 0;
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ /** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
const NUM_HYDRATE_COLUMNS = 21; const NUM_HYDRATE_COLUMNS = 22;
/** the column name for the umc_id field */ /** the column name for the umc_id field */
const UMC_ID = 'usuario_mcafee.umc_id'; const UMC_ID = 'usuario_mcafee.umc_id';
...@@ -85,6 +85,9 @@ abstract class BaseUsuarioMcafeePeer ...@@ -85,6 +85,9 @@ abstract class BaseUsuarioMcafeePeer
/** the column name for the umc_movil field */ /** the column name for the umc_movil field */
const UMC_MOVIL = 'usuario_mcafee.umc_movil'; const UMC_MOVIL = 'usuario_mcafee.umc_movil';
/** the column name for the umc_fijo field */
const UMC_FIJO = 'usuario_mcafee.umc_fijo';
/** the column name for the umc_customer_id field */ /** the column name for the umc_customer_id field */
const UMC_CUSTOMER_ID = 'usuario_mcafee.umc_customer_id'; const UMC_CUSTOMER_ID = 'usuario_mcafee.umc_customer_id';
...@@ -119,12 +122,12 @@ abstract class BaseUsuarioMcafeePeer ...@@ -119,12 +122,12 @@ abstract class BaseUsuarioMcafeePeer
* e.g. UsuarioMcafeePeer::$fieldNames[UsuarioMcafeePeer::TYPE_PHPNAME][0] = 'Id' * e.g. UsuarioMcafeePeer::$fieldNames[UsuarioMcafeePeer::TYPE_PHPNAME][0] = 'Id'
*/ */
protected static $fieldNames = array ( protected static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('UmcId', 'UmcMcafeeTipoProducto', 'UmcMcafeeAffid', 'UmcMcafeeCcid', 'UmcMcafeeEmail', 'UmcMcafeeSku', 'UmcMcafeeKeycard', 'UmcMcafeeStatus', 'UmcMovistarActivo', 'UmcMovistarAny', 'UmcMovistarEmail', 'UmcMovistarRut', 'UmcParametroEncriptado', 'UmcPermiteEmail', 'UmcFechaDesuscripcionEmail', 'UmcMovil', 'UmcCustomerId', 'UmcEliminado', 'UmcPermiteSms', 'CreatedAt', 'UpdatedAt', ), BasePeer::TYPE_PHPNAME => array ('UmcId', 'UmcMcafeeTipoProducto', 'UmcMcafeeAffid', 'UmcMcafeeCcid', 'UmcMcafeeEmail', 'UmcMcafeeSku', 'UmcMcafeeKeycard', 'UmcMcafeeStatus', 'UmcMovistarActivo', 'UmcMovistarAny', 'UmcMovistarEmail', 'UmcMovistarRut', 'UmcParametroEncriptado', 'UmcPermiteEmail', 'UmcFechaDesuscripcionEmail', 'UmcMovil', 'UmcFijo', 'UmcCustomerId', 'UmcEliminado', 'UmcPermiteSms', 'CreatedAt', 'UpdatedAt', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('umcId', 'umcMcafeeTipoProducto', 'umcMcafeeAffid', 'umcMcafeeCcid', 'umcMcafeeEmail', 'umcMcafeeSku', 'umcMcafeeKeycard', 'umcMcafeeStatus', 'umcMovistarActivo', 'umcMovistarAny', 'umcMovistarEmail', 'umcMovistarRut', 'umcParametroEncriptado', 'umcPermiteEmail', 'umcFechaDesuscripcionEmail', 'umcMovil', 'umcCustomerId', 'umcEliminado', 'umcPermiteSms', 'createdAt', 'updatedAt', ), BasePeer::TYPE_STUDLYPHPNAME => array ('umcId', 'umcMcafeeTipoProducto', 'umcMcafeeAffid', 'umcMcafeeCcid', 'umcMcafeeEmail', 'umcMcafeeSku', 'umcMcafeeKeycard', 'umcMcafeeStatus', 'umcMovistarActivo', 'umcMovistarAny', 'umcMovistarEmail', 'umcMovistarRut', 'umcParametroEncriptado', 'umcPermiteEmail', 'umcFechaDesuscripcionEmail', 'umcMovil', 'umcFijo', 'umcCustomerId', 'umcEliminado', 'umcPermiteSms', 'createdAt', 'updatedAt', ),
BasePeer::TYPE_COLNAME => array (UsuarioMcafeePeer::UMC_ID, UsuarioMcafeePeer::UMC_MCAFEE_TIPO_PRODUCTO, UsuarioMcafeePeer::UMC_MCAFEE_AFFID, UsuarioMcafeePeer::UMC_MCAFEE_CCID, UsuarioMcafeePeer::UMC_MCAFEE_EMAIL, UsuarioMcafeePeer::UMC_MCAFEE_SKU, UsuarioMcafeePeer::UMC_MCAFEE_KEYCARD, UsuarioMcafeePeer::UMC_MCAFEE_STATUS, UsuarioMcafeePeer::UMC_MOVISTAR_ACTIVO, UsuarioMcafeePeer::UMC_MOVISTAR_ANY, UsuarioMcafeePeer::UMC_MOVISTAR_EMAIL, UsuarioMcafeePeer::UMC_MOVISTAR_RUT, UsuarioMcafeePeer::UMC_PARAMETRO_ENCRIPTADO, UsuarioMcafeePeer::UMC_PERMITE_EMAIL, UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL, UsuarioMcafeePeer::UMC_MOVIL, UsuarioMcafeePeer::UMC_CUSTOMER_ID, UsuarioMcafeePeer::UMC_ELIMINADO, UsuarioMcafeePeer::UMC_PERMITE_SMS, UsuarioMcafeePeer::CREATED_AT, UsuarioMcafeePeer::UPDATED_AT, ), BasePeer::TYPE_COLNAME => array (UsuarioMcafeePeer::UMC_ID, UsuarioMcafeePeer::UMC_MCAFEE_TIPO_PRODUCTO, UsuarioMcafeePeer::UMC_MCAFEE_AFFID, UsuarioMcafeePeer::UMC_MCAFEE_CCID, UsuarioMcafeePeer::UMC_MCAFEE_EMAIL, UsuarioMcafeePeer::UMC_MCAFEE_SKU, UsuarioMcafeePeer::UMC_MCAFEE_KEYCARD, UsuarioMcafeePeer::UMC_MCAFEE_STATUS, UsuarioMcafeePeer::UMC_MOVISTAR_ACTIVO, UsuarioMcafeePeer::UMC_MOVISTAR_ANY, UsuarioMcafeePeer::UMC_MOVISTAR_EMAIL, UsuarioMcafeePeer::UMC_MOVISTAR_RUT, UsuarioMcafeePeer::UMC_PARAMETRO_ENCRIPTADO, UsuarioMcafeePeer::UMC_PERMITE_EMAIL, UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL, UsuarioMcafeePeer::UMC_MOVIL, UsuarioMcafeePeer::UMC_FIJO, UsuarioMcafeePeer::UMC_CUSTOMER_ID, UsuarioMcafeePeer::UMC_ELIMINADO, UsuarioMcafeePeer::UMC_PERMITE_SMS, UsuarioMcafeePeer::CREATED_AT, UsuarioMcafeePeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME => array ('UMC_ID', 'UMC_MCAFEE_TIPO_PRODUCTO', 'UMC_MCAFEE_AFFID', 'UMC_MCAFEE_CCID', 'UMC_MCAFEE_EMAIL', 'UMC_MCAFEE_SKU', 'UMC_MCAFEE_KEYCARD', 'UMC_MCAFEE_STATUS', 'UMC_MOVISTAR_ACTIVO', 'UMC_MOVISTAR_ANY', 'UMC_MOVISTAR_EMAIL', 'UMC_MOVISTAR_RUT', 'UMC_PARAMETRO_ENCRIPTADO', 'UMC_PERMITE_EMAIL', 'UMC_FECHA_DESUSCRIPCION_EMAIL', 'UMC_MOVIL', 'UMC_CUSTOMER_ID', 'UMC_ELIMINADO', 'UMC_PERMITE_SMS', 'CREATED_AT', 'UPDATED_AT', ), BasePeer::TYPE_RAW_COLNAME => array ('UMC_ID', 'UMC_MCAFEE_TIPO_PRODUCTO', 'UMC_MCAFEE_AFFID', 'UMC_MCAFEE_CCID', 'UMC_MCAFEE_EMAIL', 'UMC_MCAFEE_SKU', 'UMC_MCAFEE_KEYCARD', 'UMC_MCAFEE_STATUS', 'UMC_MOVISTAR_ACTIVO', 'UMC_MOVISTAR_ANY', 'UMC_MOVISTAR_EMAIL', 'UMC_MOVISTAR_RUT', 'UMC_PARAMETRO_ENCRIPTADO', 'UMC_PERMITE_EMAIL', 'UMC_FECHA_DESUSCRIPCION_EMAIL', 'UMC_MOVIL', 'UMC_FIJO', 'UMC_CUSTOMER_ID', 'UMC_ELIMINADO', 'UMC_PERMITE_SMS', 'CREATED_AT', 'UPDATED_AT', ),
BasePeer::TYPE_FIELDNAME => array ('umc_id', 'umc_mcafee_tipo_producto', 'umc_mcafee_affid', 'umc_mcafee_ccid', 'umc_mcafee_email', 'umc_mcafee_sku', 'umc_mcafee_keycard', 'umc_mcafee_status', 'umc_movistar_activo', 'umc_movistar_any', 'umc_movistar_email', 'umc_movistar_rut', 'umc_parametro_encriptado', 'umc_permite_email', 'umc_fecha_desuscripcion_email', 'umc_movil', 'umc_customer_id', 'umc_eliminado', 'umc_permite_sms', 'created_at', 'updated_at', ), BasePeer::TYPE_FIELDNAME => array ('umc_id', 'umc_mcafee_tipo_producto', 'umc_mcafee_affid', 'umc_mcafee_ccid', 'umc_mcafee_email', 'umc_mcafee_sku', 'umc_mcafee_keycard', 'umc_mcafee_status', 'umc_movistar_activo', 'umc_movistar_any', 'umc_movistar_email', 'umc_movistar_rut', 'umc_parametro_encriptado', 'umc_permite_email', 'umc_fecha_desuscripcion_email', 'umc_movil', 'umc_fijo', 'umc_customer_id', 'umc_eliminado', 'umc_permite_sms', 'created_at', 'updated_at', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ) BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
); );
/** /**
...@@ -134,12 +137,12 @@ abstract class BaseUsuarioMcafeePeer ...@@ -134,12 +137,12 @@ abstract class BaseUsuarioMcafeePeer
* e.g. UsuarioMcafeePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 * e.g. UsuarioMcafeePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/ */
protected static $fieldKeys = array ( protected static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('UmcId' => 0, 'UmcMcafeeTipoProducto' => 1, 'UmcMcafeeAffid' => 2, 'UmcMcafeeCcid' => 3, 'UmcMcafeeEmail' => 4, 'UmcMcafeeSku' => 5, 'UmcMcafeeKeycard' => 6, 'UmcMcafeeStatus' => 7, 'UmcMovistarActivo' => 8, 'UmcMovistarAny' => 9, 'UmcMovistarEmail' => 10, 'UmcMovistarRut' => 11, 'UmcParametroEncriptado' => 12, 'UmcPermiteEmail' => 13, 'UmcFechaDesuscripcionEmail' => 14, 'UmcMovil' => 15, 'UmcCustomerId' => 16, 'UmcEliminado' => 17, 'UmcPermiteSms' => 18, 'CreatedAt' => 19, 'UpdatedAt' => 20, ), BasePeer::TYPE_PHPNAME => array ('UmcId' => 0, 'UmcMcafeeTipoProducto' => 1, 'UmcMcafeeAffid' => 2, 'UmcMcafeeCcid' => 3, 'UmcMcafeeEmail' => 4, 'UmcMcafeeSku' => 5, 'UmcMcafeeKeycard' => 6, 'UmcMcafeeStatus' => 7, 'UmcMovistarActivo' => 8, 'UmcMovistarAny' => 9, 'UmcMovistarEmail' => 10, 'UmcMovistarRut' => 11, 'UmcParametroEncriptado' => 12, 'UmcPermiteEmail' => 13, 'UmcFechaDesuscripcionEmail' => 14, 'UmcMovil' => 15, 'UmcFijo' => 16, 'UmcCustomerId' => 17, 'UmcEliminado' => 18, 'UmcPermiteSms' => 19, 'CreatedAt' => 20, 'UpdatedAt' => 21, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('umcId' => 0, 'umcMcafeeTipoProducto' => 1, 'umcMcafeeAffid' => 2, 'umcMcafeeCcid' => 3, 'umcMcafeeEmail' => 4, 'umcMcafeeSku' => 5, 'umcMcafeeKeycard' => 6, 'umcMcafeeStatus' => 7, 'umcMovistarActivo' => 8, 'umcMovistarAny' => 9, 'umcMovistarEmail' => 10, 'umcMovistarRut' => 11, 'umcParametroEncriptado' => 12, 'umcPermiteEmail' => 13, 'umcFechaDesuscripcionEmail' => 14, 'umcMovil' => 15, 'umcCustomerId' => 16, 'umcEliminado' => 17, 'umcPermiteSms' => 18, 'createdAt' => 19, 'updatedAt' => 20, ), BasePeer::TYPE_STUDLYPHPNAME => array ('umcId' => 0, 'umcMcafeeTipoProducto' => 1, 'umcMcafeeAffid' => 2, 'umcMcafeeCcid' => 3, 'umcMcafeeEmail' => 4, 'umcMcafeeSku' => 5, 'umcMcafeeKeycard' => 6, 'umcMcafeeStatus' => 7, 'umcMovistarActivo' => 8, 'umcMovistarAny' => 9, 'umcMovistarEmail' => 10, 'umcMovistarRut' => 11, 'umcParametroEncriptado' => 12, 'umcPermiteEmail' => 13, 'umcFechaDesuscripcionEmail' => 14, 'umcMovil' => 15, 'umcFijo' => 16, 'umcCustomerId' => 17, 'umcEliminado' => 18, 'umcPermiteSms' => 19, 'createdAt' => 20, 'updatedAt' => 21, ),
BasePeer::TYPE_COLNAME => array (UsuarioMcafeePeer::UMC_ID => 0, UsuarioMcafeePeer::UMC_MCAFEE_TIPO_PRODUCTO => 1, UsuarioMcafeePeer::UMC_MCAFEE_AFFID => 2, UsuarioMcafeePeer::UMC_MCAFEE_CCID => 3, UsuarioMcafeePeer::UMC_MCAFEE_EMAIL => 4, UsuarioMcafeePeer::UMC_MCAFEE_SKU => 5, UsuarioMcafeePeer::UMC_MCAFEE_KEYCARD => 6, UsuarioMcafeePeer::UMC_MCAFEE_STATUS => 7, UsuarioMcafeePeer::UMC_MOVISTAR_ACTIVO => 8, UsuarioMcafeePeer::UMC_MOVISTAR_ANY => 9, UsuarioMcafeePeer::UMC_MOVISTAR_EMAIL => 10, UsuarioMcafeePeer::UMC_MOVISTAR_RUT => 11, UsuarioMcafeePeer::UMC_PARAMETRO_ENCRIPTADO => 12, UsuarioMcafeePeer::UMC_PERMITE_EMAIL => 13, UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL => 14, UsuarioMcafeePeer::UMC_MOVIL => 15, UsuarioMcafeePeer::UMC_CUSTOMER_ID => 16, UsuarioMcafeePeer::UMC_ELIMINADO => 17, UsuarioMcafeePeer::UMC_PERMITE_SMS => 18, UsuarioMcafeePeer::CREATED_AT => 19, UsuarioMcafeePeer::UPDATED_AT => 20, ), BasePeer::TYPE_COLNAME => array (UsuarioMcafeePeer::UMC_ID => 0, UsuarioMcafeePeer::UMC_MCAFEE_TIPO_PRODUCTO => 1, UsuarioMcafeePeer::UMC_MCAFEE_AFFID => 2, UsuarioMcafeePeer::UMC_MCAFEE_CCID => 3, UsuarioMcafeePeer::UMC_MCAFEE_EMAIL => 4, UsuarioMcafeePeer::UMC_MCAFEE_SKU => 5, UsuarioMcafeePeer::UMC_MCAFEE_KEYCARD => 6, UsuarioMcafeePeer::UMC_MCAFEE_STATUS => 7, UsuarioMcafeePeer::UMC_MOVISTAR_ACTIVO => 8, UsuarioMcafeePeer::UMC_MOVISTAR_ANY => 9, UsuarioMcafeePeer::UMC_MOVISTAR_EMAIL => 10, UsuarioMcafeePeer::UMC_MOVISTAR_RUT => 11, UsuarioMcafeePeer::UMC_PARAMETRO_ENCRIPTADO => 12, UsuarioMcafeePeer::UMC_PERMITE_EMAIL => 13, UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL => 14, UsuarioMcafeePeer::UMC_MOVIL => 15, UsuarioMcafeePeer::UMC_FIJO => 16, UsuarioMcafeePeer::UMC_CUSTOMER_ID => 17, UsuarioMcafeePeer::UMC_ELIMINADO => 18, UsuarioMcafeePeer::UMC_PERMITE_SMS => 19, UsuarioMcafeePeer::CREATED_AT => 20, UsuarioMcafeePeer::UPDATED_AT => 21, ),
BasePeer::TYPE_RAW_COLNAME => array ('UMC_ID' => 0, 'UMC_MCAFEE_TIPO_PRODUCTO' => 1, 'UMC_MCAFEE_AFFID' => 2, 'UMC_MCAFEE_CCID' => 3, 'UMC_MCAFEE_EMAIL' => 4, 'UMC_MCAFEE_SKU' => 5, 'UMC_MCAFEE_KEYCARD' => 6, 'UMC_MCAFEE_STATUS' => 7, 'UMC_MOVISTAR_ACTIVO' => 8, 'UMC_MOVISTAR_ANY' => 9, 'UMC_MOVISTAR_EMAIL' => 10, 'UMC_MOVISTAR_RUT' => 11, 'UMC_PARAMETRO_ENCRIPTADO' => 12, 'UMC_PERMITE_EMAIL' => 13, 'UMC_FECHA_DESUSCRIPCION_EMAIL' => 14, 'UMC_MOVIL' => 15, 'UMC_CUSTOMER_ID' => 16, 'UMC_ELIMINADO' => 17, 'UMC_PERMITE_SMS' => 18, 'CREATED_AT' => 19, 'UPDATED_AT' => 20, ), BasePeer::TYPE_RAW_COLNAME => array ('UMC_ID' => 0, 'UMC_MCAFEE_TIPO_PRODUCTO' => 1, 'UMC_MCAFEE_AFFID' => 2, 'UMC_MCAFEE_CCID' => 3, 'UMC_MCAFEE_EMAIL' => 4, 'UMC_MCAFEE_SKU' => 5, 'UMC_MCAFEE_KEYCARD' => 6, 'UMC_MCAFEE_STATUS' => 7, 'UMC_MOVISTAR_ACTIVO' => 8, 'UMC_MOVISTAR_ANY' => 9, 'UMC_MOVISTAR_EMAIL' => 10, 'UMC_MOVISTAR_RUT' => 11, 'UMC_PARAMETRO_ENCRIPTADO' => 12, 'UMC_PERMITE_EMAIL' => 13, 'UMC_FECHA_DESUSCRIPCION_EMAIL' => 14, 'UMC_MOVIL' => 15, 'UMC_FIJO' => 16, 'UMC_CUSTOMER_ID' => 17, 'UMC_ELIMINADO' => 18, 'UMC_PERMITE_SMS' => 19, 'CREATED_AT' => 20, 'UPDATED_AT' => 21, ),
BasePeer::TYPE_FIELDNAME => array ('umc_id' => 0, 'umc_mcafee_tipo_producto' => 1, 'umc_mcafee_affid' => 2, 'umc_mcafee_ccid' => 3, 'umc_mcafee_email' => 4, 'umc_mcafee_sku' => 5, 'umc_mcafee_keycard' => 6, 'umc_mcafee_status' => 7, 'umc_movistar_activo' => 8, 'umc_movistar_any' => 9, 'umc_movistar_email' => 10, 'umc_movistar_rut' => 11, 'umc_parametro_encriptado' => 12, 'umc_permite_email' => 13, 'umc_fecha_desuscripcion_email' => 14, 'umc_movil' => 15, 'umc_customer_id' => 16, 'umc_eliminado' => 17, 'umc_permite_sms' => 18, 'created_at' => 19, 'updated_at' => 20, ), BasePeer::TYPE_FIELDNAME => array ('umc_id' => 0, 'umc_mcafee_tipo_producto' => 1, 'umc_mcafee_affid' => 2, 'umc_mcafee_ccid' => 3, 'umc_mcafee_email' => 4, 'umc_mcafee_sku' => 5, 'umc_mcafee_keycard' => 6, 'umc_mcafee_status' => 7, 'umc_movistar_activo' => 8, 'umc_movistar_any' => 9, 'umc_movistar_email' => 10, 'umc_movistar_rut' => 11, 'umc_parametro_encriptado' => 12, 'umc_permite_email' => 13, 'umc_fecha_desuscripcion_email' => 14, 'umc_movil' => 15, 'umc_fijo' => 16, 'umc_customer_id' => 17, 'umc_eliminado' => 18, 'umc_permite_sms' => 19, 'created_at' => 20, 'updated_at' => 21, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ) BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
); );
/** /**
...@@ -229,6 +232,7 @@ abstract class BaseUsuarioMcafeePeer ...@@ -229,6 +232,7 @@ abstract class BaseUsuarioMcafeePeer
$criteria->addSelectColumn(UsuarioMcafeePeer::UMC_PERMITE_EMAIL); $criteria->addSelectColumn(UsuarioMcafeePeer::UMC_PERMITE_EMAIL);
$criteria->addSelectColumn(UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL); $criteria->addSelectColumn(UsuarioMcafeePeer::UMC_FECHA_DESUSCRIPCION_EMAIL);
$criteria->addSelectColumn(UsuarioMcafeePeer::UMC_MOVIL); $criteria->addSelectColumn(UsuarioMcafeePeer::UMC_MOVIL);
$criteria->addSelectColumn(UsuarioMcafeePeer::UMC_FIJO);
$criteria->addSelectColumn(UsuarioMcafeePeer::UMC_CUSTOMER_ID); $criteria->addSelectColumn(UsuarioMcafeePeer::UMC_CUSTOMER_ID);
$criteria->addSelectColumn(UsuarioMcafeePeer::UMC_ELIMINADO); $criteria->addSelectColumn(UsuarioMcafeePeer::UMC_ELIMINADO);
$criteria->addSelectColumn(UsuarioMcafeePeer::UMC_PERMITE_SMS); $criteria->addSelectColumn(UsuarioMcafeePeer::UMC_PERMITE_SMS);
...@@ -251,6 +255,7 @@ abstract class BaseUsuarioMcafeePeer ...@@ -251,6 +255,7 @@ abstract class BaseUsuarioMcafeePeer
$criteria->addSelectColumn($alias . '.umc_permite_email'); $criteria->addSelectColumn($alias . '.umc_permite_email');
$criteria->addSelectColumn($alias . '.umc_fecha_desuscripcion_email'); $criteria->addSelectColumn($alias . '.umc_fecha_desuscripcion_email');
$criteria->addSelectColumn($alias . '.umc_movil'); $criteria->addSelectColumn($alias . '.umc_movil');
$criteria->addSelectColumn($alias . '.umc_fijo');
$criteria->addSelectColumn($alias . '.umc_customer_id'); $criteria->addSelectColumn($alias . '.umc_customer_id');
$criteria->addSelectColumn($alias . '.umc_eliminado'); $criteria->addSelectColumn($alias . '.umc_eliminado');
$criteria->addSelectColumn($alias . '.umc_permite_sms'); $criteria->addSelectColumn($alias . '.umc_permite_sms');
......
...@@ -15,6 +15,7 @@ use \PropelPDO; ...@@ -15,6 +15,7 @@ use \PropelPDO;
use AppBundle\Model\EnvioEmail; use AppBundle\Model\EnvioEmail;
use AppBundle\Model\McafeeTransaccion; use AppBundle\Model\McafeeTransaccion;
use AppBundle\Model\McafeeTransaccionPendiente; use AppBundle\Model\McafeeTransaccionPendiente;
use AppBundle\Model\McafeeUltimoProcesoNormalizacion;
use AppBundle\Model\Sms; use AppBundle\Model\Sms;
use AppBundle\Model\Tracking; use AppBundle\Model\Tracking;
use AppBundle\Model\UsuarioMcafee; use AppBundle\Model\UsuarioMcafee;
...@@ -38,6 +39,7 @@ use AppBundle\Model\UsuarioMcafeeQuery; ...@@ -38,6 +39,7 @@ use AppBundle\Model\UsuarioMcafeeQuery;
* @method UsuarioMcafeeQuery orderByUmcPermiteEmail($order = Criteria::ASC) Order by the umc_permite_email column * @method UsuarioMcafeeQuery orderByUmcPermiteEmail($order = Criteria::ASC) Order by the umc_permite_email column
* @method UsuarioMcafeeQuery orderByUmcFechaDesuscripcionEmail($order = Criteria::ASC) Order by the umc_fecha_desuscripcion_email column * @method UsuarioMcafeeQuery orderByUmcFechaDesuscripcionEmail($order = Criteria::ASC) Order by the umc_fecha_desuscripcion_email column
* @method UsuarioMcafeeQuery orderByUmcMovil($order = Criteria::ASC) Order by the umc_movil column * @method UsuarioMcafeeQuery orderByUmcMovil($order = Criteria::ASC) Order by the umc_movil column
* @method UsuarioMcafeeQuery orderByUmcFijo($order = Criteria::ASC) Order by the umc_fijo column
* @method UsuarioMcafeeQuery orderByUmcCustomerId($order = Criteria::ASC) Order by the umc_customer_id column * @method UsuarioMcafeeQuery orderByUmcCustomerId($order = Criteria::ASC) Order by the umc_customer_id column
* @method UsuarioMcafeeQuery orderByUmcEliminado($order = Criteria::ASC) Order by the umc_eliminado column * @method UsuarioMcafeeQuery orderByUmcEliminado($order = Criteria::ASC) Order by the umc_eliminado column
* @method UsuarioMcafeeQuery orderByUmcPermiteSms($order = Criteria::ASC) Order by the umc_permite_sms column * @method UsuarioMcafeeQuery orderByUmcPermiteSms($order = Criteria::ASC) Order by the umc_permite_sms column
...@@ -60,6 +62,7 @@ use AppBundle\Model\UsuarioMcafeeQuery; ...@@ -60,6 +62,7 @@ use AppBundle\Model\UsuarioMcafeeQuery;
* @method UsuarioMcafeeQuery groupByUmcPermiteEmail() Group by the umc_permite_email column * @method UsuarioMcafeeQuery groupByUmcPermiteEmail() Group by the umc_permite_email column
* @method UsuarioMcafeeQuery groupByUmcFechaDesuscripcionEmail() Group by the umc_fecha_desuscripcion_email column * @method UsuarioMcafeeQuery groupByUmcFechaDesuscripcionEmail() Group by the umc_fecha_desuscripcion_email column
* @method UsuarioMcafeeQuery groupByUmcMovil() Group by the umc_movil column * @method UsuarioMcafeeQuery groupByUmcMovil() Group by the umc_movil column
* @method UsuarioMcafeeQuery groupByUmcFijo() Group by the umc_fijo column
* @method UsuarioMcafeeQuery groupByUmcCustomerId() Group by the umc_customer_id column * @method UsuarioMcafeeQuery groupByUmcCustomerId() Group by the umc_customer_id column
* @method UsuarioMcafeeQuery groupByUmcEliminado() Group by the umc_eliminado column * @method UsuarioMcafeeQuery groupByUmcEliminado() Group by the umc_eliminado column
* @method UsuarioMcafeeQuery groupByUmcPermiteSms() Group by the umc_permite_sms column * @method UsuarioMcafeeQuery groupByUmcPermiteSms() Group by the umc_permite_sms column
...@@ -82,6 +85,10 @@ use AppBundle\Model\UsuarioMcafeeQuery; ...@@ -82,6 +85,10 @@ use AppBundle\Model\UsuarioMcafeeQuery;
* @method UsuarioMcafeeQuery rightJoinMcafeeTransaccionPendiente($relationAlias = null) Adds a RIGHT JOIN clause to the query using the McafeeTransaccionPendiente relation * @method UsuarioMcafeeQuery rightJoinMcafeeTransaccionPendiente($relationAlias = null) Adds a RIGHT JOIN clause to the query using the McafeeTransaccionPendiente relation
* @method UsuarioMcafeeQuery innerJoinMcafeeTransaccionPendiente($relationAlias = null) Adds a INNER JOIN clause to the query using the McafeeTransaccionPendiente relation * @method UsuarioMcafeeQuery innerJoinMcafeeTransaccionPendiente($relationAlias = null) Adds a INNER JOIN clause to the query using the McafeeTransaccionPendiente relation
* *
* @method UsuarioMcafeeQuery leftJoinMcafeeUltimoProcesoNormalizacion($relationAlias = null) Adds a LEFT JOIN clause to the query using the McafeeUltimoProcesoNormalizacion relation
* @method UsuarioMcafeeQuery rightJoinMcafeeUltimoProcesoNormalizacion($relationAlias = null) Adds a RIGHT JOIN clause to the query using the McafeeUltimoProcesoNormalizacion relation
* @method UsuarioMcafeeQuery innerJoinMcafeeUltimoProcesoNormalizacion($relationAlias = null) Adds a INNER JOIN clause to the query using the McafeeUltimoProcesoNormalizacion relation
*
* @method UsuarioMcafeeQuery leftJoinSms($relationAlias = null) Adds a LEFT JOIN clause to the query using the Sms relation * @method UsuarioMcafeeQuery leftJoinSms($relationAlias = null) Adds a LEFT JOIN clause to the query using the Sms relation
* @method UsuarioMcafeeQuery rightJoinSms($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Sms relation * @method UsuarioMcafeeQuery rightJoinSms($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Sms relation
* @method UsuarioMcafeeQuery innerJoinSms($relationAlias = null) Adds a INNER JOIN clause to the query using the Sms relation * @method UsuarioMcafeeQuery innerJoinSms($relationAlias = null) Adds a INNER JOIN clause to the query using the Sms relation
...@@ -108,6 +115,7 @@ use AppBundle\Model\UsuarioMcafeeQuery; ...@@ -108,6 +115,7 @@ use AppBundle\Model\UsuarioMcafeeQuery;
* @method UsuarioMcafee findOneByUmcPermiteEmail(boolean $umc_permite_email) Return the first UsuarioMcafee filtered by the umc_permite_email column * @method UsuarioMcafee findOneByUmcPermiteEmail(boolean $umc_permite_email) Return the first UsuarioMcafee filtered by the umc_permite_email column
* @method UsuarioMcafee findOneByUmcFechaDesuscripcionEmail(string $umc_fecha_desuscripcion_email) Return the first UsuarioMcafee filtered by the umc_fecha_desuscripcion_email column * @method UsuarioMcafee findOneByUmcFechaDesuscripcionEmail(string $umc_fecha_desuscripcion_email) Return the first UsuarioMcafee filtered by the umc_fecha_desuscripcion_email column
* @method UsuarioMcafee findOneByUmcMovil(string $umc_movil) Return the first UsuarioMcafee filtered by the umc_movil column * @method UsuarioMcafee findOneByUmcMovil(string $umc_movil) Return the first UsuarioMcafee filtered by the umc_movil column
* @method UsuarioMcafee findOneByUmcFijo(string $umc_fijo) Return the first UsuarioMcafee filtered by the umc_fijo column
* @method UsuarioMcafee findOneByUmcCustomerId(string $umc_customer_id) Return the first UsuarioMcafee filtered by the umc_customer_id column * @method UsuarioMcafee findOneByUmcCustomerId(string $umc_customer_id) Return the first UsuarioMcafee filtered by the umc_customer_id column
* @method UsuarioMcafee findOneByUmcEliminado(boolean $umc_eliminado) Return the first UsuarioMcafee filtered by the umc_eliminado column * @method UsuarioMcafee findOneByUmcEliminado(boolean $umc_eliminado) Return the first UsuarioMcafee filtered by the umc_eliminado column
* @method UsuarioMcafee findOneByUmcPermiteSms(boolean $umc_permite_sms) Return the first UsuarioMcafee filtered by the umc_permite_sms column * @method UsuarioMcafee findOneByUmcPermiteSms(boolean $umc_permite_sms) Return the first UsuarioMcafee filtered by the umc_permite_sms column
...@@ -130,6 +138,7 @@ use AppBundle\Model\UsuarioMcafeeQuery; ...@@ -130,6 +138,7 @@ use AppBundle\Model\UsuarioMcafeeQuery;
* @method array findByUmcPermiteEmail(boolean $umc_permite_email) Return UsuarioMcafee objects filtered by the umc_permite_email column * @method array findByUmcPermiteEmail(boolean $umc_permite_email) Return UsuarioMcafee objects filtered by the umc_permite_email column
* @method array findByUmcFechaDesuscripcionEmail(string $umc_fecha_desuscripcion_email) Return UsuarioMcafee objects filtered by the umc_fecha_desuscripcion_email column * @method array findByUmcFechaDesuscripcionEmail(string $umc_fecha_desuscripcion_email) Return UsuarioMcafee objects filtered by the umc_fecha_desuscripcion_email column
* @method array findByUmcMovil(string $umc_movil) Return UsuarioMcafee objects filtered by the umc_movil column * @method array findByUmcMovil(string $umc_movil) Return UsuarioMcafee objects filtered by the umc_movil column
* @method array findByUmcFijo(string $umc_fijo) Return UsuarioMcafee objects filtered by the umc_fijo column
* @method array findByUmcCustomerId(string $umc_customer_id) Return UsuarioMcafee objects filtered by the umc_customer_id column * @method array findByUmcCustomerId(string $umc_customer_id) Return UsuarioMcafee objects filtered by the umc_customer_id column
* @method array findByUmcEliminado(boolean $umc_eliminado) Return UsuarioMcafee objects filtered by the umc_eliminado column * @method array findByUmcEliminado(boolean $umc_eliminado) Return UsuarioMcafee objects filtered by the umc_eliminado column
* @method array findByUmcPermiteSms(boolean $umc_permite_sms) Return UsuarioMcafee objects filtered by the umc_permite_sms column * @method array findByUmcPermiteSms(boolean $umc_permite_sms) Return UsuarioMcafee objects filtered by the umc_permite_sms column
...@@ -240,7 +249,7 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria ...@@ -240,7 +249,7 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria
*/ */
protected function findPkSimple($key, $con) protected function findPkSimple($key, $con)
{ {
$sql = 'SELECT `umc_id`, `umc_mcafee_tipo_producto`, `umc_mcafee_affid`, `umc_mcafee_ccid`, `umc_mcafee_email`, `umc_mcafee_sku`, `umc_mcafee_keycard`, `umc_mcafee_status`, `umc_movistar_activo`, `umc_movistar_any`, `umc_movistar_email`, `umc_movistar_rut`, `umc_parametro_encriptado`, `umc_permite_email`, `umc_fecha_desuscripcion_email`, `umc_movil`, `umc_customer_id`, `umc_eliminado`, `umc_permite_sms`, `created_at`, `updated_at` FROM `usuario_mcafee` WHERE `umc_id` = :p0'; $sql = 'SELECT `umc_id`, `umc_mcafee_tipo_producto`, `umc_mcafee_affid`, `umc_mcafee_ccid`, `umc_mcafee_email`, `umc_mcafee_sku`, `umc_mcafee_keycard`, `umc_mcafee_status`, `umc_movistar_activo`, `umc_movistar_any`, `umc_movistar_email`, `umc_movistar_rut`, `umc_parametro_encriptado`, `umc_permite_email`, `umc_fecha_desuscripcion_email`, `umc_movil`, `umc_fijo`, `umc_customer_id`, `umc_eliminado`, `umc_permite_sms`, `created_at`, `updated_at` FROM `usuario_mcafee` WHERE `umc_id` = :p0';
try { try {
$stmt = $con->prepare($sql); $stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT); $stmt->bindValue(':p0', $key, PDO::PARAM_INT);
...@@ -842,6 +851,35 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria ...@@ -842,6 +851,35 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria
return $this->addUsingAlias(UsuarioMcafeePeer::UMC_MOVIL, $umcMovil, $comparison); return $this->addUsingAlias(UsuarioMcafeePeer::UMC_MOVIL, $umcMovil, $comparison);
} }
/**
* Filter the query on the umc_fijo column
*
* Example usage:
* <code>
* $query->filterByUmcFijo('fooValue'); // WHERE umc_fijo = 'fooValue'
* $query->filterByUmcFijo('%fooValue%'); // WHERE umc_fijo LIKE '%fooValue%'
* </code>
*
* @param string $umcFijo The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function filterByUmcFijo($umcFijo = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($umcFijo)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $umcFijo)) {
$umcFijo = str_replace('*', '%', $umcFijo);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(UsuarioMcafeePeer::UMC_FIJO, $umcFijo, $comparison);
}
/** /**
* Filter the query on the umc_customer_id column * Filter the query on the umc_customer_id column
* *
...@@ -1233,6 +1271,80 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria ...@@ -1233,6 +1271,80 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'McafeeTransaccionPendiente', '\AppBundle\Model\McafeeTransaccionPendienteQuery'); ->useQuery($relationAlias ? $relationAlias : 'McafeeTransaccionPendiente', '\AppBundle\Model\McafeeTransaccionPendienteQuery');
} }
/**
* Filter the query by a related McafeeUltimoProcesoNormalizacion object
*
* @param McafeeUltimoProcesoNormalizacion|PropelObjectCollection $mcafeeUltimoProcesoNormalizacion the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid.
*/
public function filterByMcafeeUltimoProcesoNormalizacion($mcafeeUltimoProcesoNormalizacion, $comparison = null)
{
if ($mcafeeUltimoProcesoNormalizacion instanceof McafeeUltimoProcesoNormalizacion) {
return $this
->addUsingAlias(UsuarioMcafeePeer::UMC_ID, $mcafeeUltimoProcesoNormalizacion->getUltimoUmcId(), $comparison);
} elseif ($mcafeeUltimoProcesoNormalizacion instanceof PropelObjectCollection) {
return $this
->useMcafeeUltimoProcesoNormalizacionQuery()
->filterByPrimaryKeys($mcafeeUltimoProcesoNormalizacion->getPrimaryKeys())
->endUse();
} else {
throw new PropelException('filterByMcafeeUltimoProcesoNormalizacion() only accepts arguments of type McafeeUltimoProcesoNormalizacion or PropelCollection');
}
}
/**
* Adds a JOIN clause to the query using the McafeeUltimoProcesoNormalizacion relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function joinMcafeeUltimoProcesoNormalizacion($relationAlias = null, $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('McafeeUltimoProcesoNormalizacion');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if ($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'McafeeUltimoProcesoNormalizacion');
}
return $this;
}
/**
* Use the McafeeUltimoProcesoNormalizacion relation McafeeUltimoProcesoNormalizacion object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return \AppBundle\Model\McafeeUltimoProcesoNormalizacionQuery A secondary query class using the current class as primary query
*/
public function useMcafeeUltimoProcesoNormalizacionQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinMcafeeUltimoProcesoNormalizacion($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'McafeeUltimoProcesoNormalizacion', '\AppBundle\Model\McafeeUltimoProcesoNormalizacionQuery');
}
/** /**
* Filter the query by a related Sms object * Filter the query by a related Sms object
* *
...@@ -1397,4 +1509,69 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria ...@@ -1397,4 +1509,69 @@ abstract class BaseUsuarioMcafeeQuery extends ModelCriteria
return $this; return $this;
} }
// timestampable behavior
/**
* Filter by the latest updated
*
* @param int $nbDays Maximum age of the latest update in days
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function recentlyUpdated($nbDays = 7)
{
return $this->addUsingAlias(UsuarioMcafeePeer::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by update date desc
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function lastUpdatedFirst()
{
return $this->addDescendingOrderByColumn(UsuarioMcafeePeer::UPDATED_AT);
}
/**
* Order by update date asc
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function firstUpdatedFirst()
{
return $this->addAscendingOrderByColumn(UsuarioMcafeePeer::UPDATED_AT);
}
/**
* Filter by the latest created
*
* @param int $nbDays Maximum age of in days
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function recentlyCreated($nbDays = 7)
{
return $this->addUsingAlias(UsuarioMcafeePeer::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL);
}
/**
* Order by create date desc
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function lastCreatedFirst()
{
return $this->addDescendingOrderByColumn(UsuarioMcafeePeer::CREATED_AT);
}
/**
* Order by create date asc
*
* @return UsuarioMcafeeQuery The current query, for fluid interface
*/
public function firstCreatedFirst()
{
return $this->addAscendingOrderByColumn(UsuarioMcafeePeer::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