Actualizacion

parent c0fec21d
......@@ -34,8 +34,10 @@
<column name="unu_nombre" phpName="UnuNombre" type="VARCHAR" size="250" required="false"/>
<column name="unu_correo" phpName="UnuCorreo" type="VARCHAR" size="250" required="false"/>
<column name="unu_path_foto_inicial" phpName="UnuPathFotoInicial" type="VARCHAR" size="1000" required="false"/>
<column name="unu_ext_inicial" phpName="UnuExtInicial" type="VARCHAR" size="45" required="false"/>
<column name="unu_comentario_inicial" phpName="UnuComentarioInicial" type="VARCHAR" size="1000" required="false"/>
<column name="unu_path_foto_final" phpName="UnuPathFotoFinal" type="VARCHAR" size="1000" required="false"/>
<column name="unu_ext_final" phpName="UnuExtFinal" type="VARCHAR" size="45" required="false"/>
<column name="unu_comentario_final" phpName="UnuComentarioFinal" type="VARCHAR" size="1000" required="false"/>
<column name="unu_estado" phpName="UnuEstado" type="INTEGER" required="false"/>
<column name="unu_eliminado" phpName="UnuEliminado" type="INTEGER" required="false"/>
......
......@@ -49,7 +49,9 @@ class UsuarioNutrapharmTableMap extends TableMap
$this->addColumn('unu_nombre', 'UnuNombre', 'VARCHAR', false, 250, null);
$this->addColumn('unu_correo', 'UnuCorreo', 'VARCHAR', false, 250, null);
$this->addColumn('unu_path_foto_inicial', 'UnuPathFotoInicial', 'VARCHAR', false, 1000, null);
$this->addColumn('unu_ext_inicial', 'UnuExtInicial', 'VARCHAR', false, 45, null);
$this->addColumn('unu_comentario_inicial', 'UnuComentarioInicial', 'VARCHAR', false, 1000, null);
$this->addColumn('unu_ext_final', 'UnuExtFinal', 'VARCHAR', false, 45, null);
$this->addColumn('unu_path_foto_final', 'UnuPathFotoFinal', 'VARCHAR', false, 1000, null);
$this->addColumn('unu_comentario_final', 'UnuComentarioFinal', 'VARCHAR', false, 1000, null);
$this->addColumn('unu_estado', 'UnuEstado', 'INTEGER', false, null, null);
......
......@@ -84,12 +84,24 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
*/
protected $unu_path_foto_inicial;
/**
* The value for the unu_ext_inicial field.
* @var string
*/
protected $unu_ext_inicial;
/**
* The value for the unu_comentario_inicial field.
* @var string
*/
protected $unu_comentario_inicial;
/**
* The value for the unu_ext_final field.
* @var string
*/
protected $unu_ext_final;
/**
* The value for the unu_path_foto_final field.
* @var string
......@@ -235,6 +247,17 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
return $this->unu_path_foto_inicial;
}
/**
* Get the [unu_ext_inicial] column value.
*
* @return string
*/
public function getUnuExtInicial()
{
return $this->unu_ext_inicial;
}
/**
* Get the [unu_comentario_inicial] column value.
*
......@@ -246,6 +269,17 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
return $this->unu_comentario_inicial;
}
/**
* Get the [unu_ext_final] column value.
*
* @return string
*/
public function getUnuExtFinal()
{
return $this->unu_ext_final;
}
/**
* Get the [unu_path_foto_final] column value.
*
......@@ -517,6 +551,27 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
return $this;
} // setUnuPathFotoInicial()
/**
* Set the value of [unu_ext_inicial] column.
*
* @param string $v new value
* @return UsuarioNutrapharm The current object (for fluent API support)
*/
public function setUnuExtInicial($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->unu_ext_inicial !== $v) {
$this->unu_ext_inicial = $v;
$this->modifiedColumns[] = UsuarioNutrapharmPeer::UNU_EXT_INICIAL;
}
return $this;
} // setUnuExtInicial()
/**
* Set the value of [unu_comentario_inicial] column.
*
......@@ -538,6 +593,27 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
return $this;
} // setUnuComentarioInicial()
/**
* Set the value of [unu_ext_final] column.
*
* @param string $v new value
* @return UsuarioNutrapharm The current object (for fluent API support)
*/
public function setUnuExtFinal($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->unu_ext_final !== $v) {
$this->unu_ext_final = $v;
$this->modifiedColumns[] = UsuarioNutrapharmPeer::UNU_EXT_FINAL;
}
return $this;
} // setUnuExtFinal()
/**
* Set the value of [unu_path_foto_final] column.
*
......@@ -707,13 +783,15 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
$this->unu_nombre = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
$this->unu_correo = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
$this->unu_path_foto_inicial = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
$this->unu_comentario_inicial = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null;
$this->unu_path_foto_final = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null;
$this->unu_comentario_final = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
$this->unu_estado = ($row[$startcol + 10] !== null) ? (int) $row[$startcol + 10] : null;
$this->unu_eliminado = ($row[$startcol + 11] !== null) ? (int) $row[$startcol + 11] : null;
$this->created_at = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
$this->updated_at = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null;
$this->unu_ext_inicial = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null;
$this->unu_comentario_inicial = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null;
$this->unu_ext_final = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
$this->unu_path_foto_final = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
$this->unu_comentario_final = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
$this->unu_estado = ($row[$startcol + 12] !== null) ? (int) $row[$startcol + 12] : null;
$this->unu_eliminado = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null;
$this->created_at = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null;
$this->updated_at = ($row[$startcol + 15] !== null) ? (string) $row[$startcol + 15] : null;
$this->resetModified();
$this->setNew(false);
......@@ -723,7 +801,7 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
}
$this->postHydrate($row, $startcol, $rehydrate);
return $startcol + 14; // 14 = UsuarioNutrapharmPeer::NUM_HYDRATE_COLUMNS.
return $startcol + 16; // 16 = UsuarioNutrapharmPeer::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating UsuarioNutrapharm object", $e);
......@@ -986,9 +1064,15 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL)) {
$modifiedColumns[':p' . $index++] = '`unu_path_foto_inicial`';
}
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_EXT_INICIAL)) {
$modifiedColumns[':p' . $index++] = '`unu_ext_inicial`';
}
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL)) {
$modifiedColumns[':p' . $index++] = '`unu_comentario_inicial`';
}
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_EXT_FINAL)) {
$modifiedColumns[':p' . $index++] = '`unu_ext_final`';
}
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL)) {
$modifiedColumns[':p' . $index++] = '`unu_path_foto_final`';
}
......@@ -1039,9 +1123,15 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
case '`unu_path_foto_inicial`':
$stmt->bindValue($identifier, $this->unu_path_foto_inicial, PDO::PARAM_STR);
break;
case '`unu_ext_inicial`':
$stmt->bindValue($identifier, $this->unu_ext_inicial, PDO::PARAM_STR);
break;
case '`unu_comentario_inicial`':
$stmt->bindValue($identifier, $this->unu_comentario_inicial, PDO::PARAM_STR);
break;
case '`unu_ext_final`':
$stmt->bindValue($identifier, $this->unu_ext_final, PDO::PARAM_STR);
break;
case '`unu_path_foto_final`':
$stmt->bindValue($identifier, $this->unu_path_foto_final, PDO::PARAM_STR);
break;
......@@ -1224,24 +1314,30 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
return $this->getUnuPathFotoInicial();
break;
case 7:
return $this->getUnuComentarioInicial();
return $this->getUnuExtInicial();
break;
case 8:
return $this->getUnuPathFotoFinal();
return $this->getUnuComentarioInicial();
break;
case 9:
return $this->getUnuComentarioFinal();
return $this->getUnuExtFinal();
break;
case 10:
return $this->getUnuEstado();
return $this->getUnuPathFotoFinal();
break;
case 11:
return $this->getUnuEliminado();
return $this->getUnuComentarioFinal();
break;
case 12:
return $this->getCreatedAt();
return $this->getUnuEstado();
break;
case 13:
return $this->getUnuEliminado();
break;
case 14:
return $this->getCreatedAt();
break;
case 15:
return $this->getUpdatedAt();
break;
default:
......@@ -1280,13 +1376,15 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
$keys[4] => $this->getUnuNombre(),
$keys[5] => $this->getUnuCorreo(),
$keys[6] => $this->getUnuPathFotoInicial(),
$keys[7] => $this->getUnuComentarioInicial(),
$keys[8] => $this->getUnuPathFotoFinal(),
$keys[9] => $this->getUnuComentarioFinal(),
$keys[10] => $this->getUnuEstado(),
$keys[11] => $this->getUnuEliminado(),
$keys[12] => $this->getCreatedAt(),
$keys[13] => $this->getUpdatedAt(),
$keys[7] => $this->getUnuExtInicial(),
$keys[8] => $this->getUnuComentarioInicial(),
$keys[9] => $this->getUnuExtFinal(),
$keys[10] => $this->getUnuPathFotoFinal(),
$keys[11] => $this->getUnuComentarioFinal(),
$keys[12] => $this->getUnuEstado(),
$keys[13] => $this->getUnuEliminado(),
$keys[14] => $this->getCreatedAt(),
$keys[15] => $this->getUpdatedAt(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
......@@ -1353,24 +1451,30 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
$this->setUnuPathFotoInicial($value);
break;
case 7:
$this->setUnuComentarioInicial($value);
$this->setUnuExtInicial($value);
break;
case 8:
$this->setUnuPathFotoFinal($value);
$this->setUnuComentarioInicial($value);
break;
case 9:
$this->setUnuComentarioFinal($value);
$this->setUnuExtFinal($value);
break;
case 10:
$this->setUnuEstado($value);
$this->setUnuPathFotoFinal($value);
break;
case 11:
$this->setUnuEliminado($value);
$this->setUnuComentarioFinal($value);
break;
case 12:
$this->setCreatedAt($value);
$this->setUnuEstado($value);
break;
case 13:
$this->setUnuEliminado($value);
break;
case 14:
$this->setCreatedAt($value);
break;
case 15:
$this->setUpdatedAt($value);
break;
} // switch()
......@@ -1404,13 +1508,15 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
if (array_key_exists($keys[4], $arr)) $this->setUnuNombre($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setUnuCorreo($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setUnuPathFotoInicial($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setUnuComentarioInicial($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setUnuPathFotoFinal($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setUnuComentarioFinal($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setUnuEstado($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setUnuEliminado($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setCreatedAt($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setUpdatedAt($arr[$keys[13]]);
if (array_key_exists($keys[7], $arr)) $this->setUnuExtInicial($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setUnuComentarioInicial($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setUnuExtFinal($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setUnuPathFotoFinal($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setUnuComentarioFinal($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setUnuEstado($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setUnuEliminado($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setCreatedAt($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setUpdatedAt($arr[$keys[15]]);
}
/**
......@@ -1429,7 +1535,9 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_NOMBRE)) $criteria->add(UsuarioNutrapharmPeer::UNU_NOMBRE, $this->unu_nombre);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_CORREO)) $criteria->add(UsuarioNutrapharmPeer::UNU_CORREO, $this->unu_correo);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL)) $criteria->add(UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL, $this->unu_path_foto_inicial);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_EXT_INICIAL)) $criteria->add(UsuarioNutrapharmPeer::UNU_EXT_INICIAL, $this->unu_ext_inicial);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL)) $criteria->add(UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL, $this->unu_comentario_inicial);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_EXT_FINAL)) $criteria->add(UsuarioNutrapharmPeer::UNU_EXT_FINAL, $this->unu_ext_final);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL)) $criteria->add(UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL, $this->unu_path_foto_final);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_COMENTARIO_FINAL)) $criteria->add(UsuarioNutrapharmPeer::UNU_COMENTARIO_FINAL, $this->unu_comentario_final);
if ($this->isColumnModified(UsuarioNutrapharmPeer::UNU_ESTADO)) $criteria->add(UsuarioNutrapharmPeer::UNU_ESTADO, $this->unu_estado);
......@@ -1505,7 +1613,9 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
$copyObj->setUnuNombre($this->getUnuNombre());
$copyObj->setUnuCorreo($this->getUnuCorreo());
$copyObj->setUnuPathFotoInicial($this->getUnuPathFotoInicial());
$copyObj->setUnuExtInicial($this->getUnuExtInicial());
$copyObj->setUnuComentarioInicial($this->getUnuComentarioInicial());
$copyObj->setUnuExtFinal($this->getUnuExtFinal());
$copyObj->setUnuPathFotoFinal($this->getUnuPathFotoFinal());
$copyObj->setUnuComentarioFinal($this->getUnuComentarioFinal());
$copyObj->setUnuEstado($this->getUnuEstado());
......@@ -1829,7 +1939,9 @@ abstract class BaseUsuarioNutrapharm extends BaseObject implements Persistent
$this->unu_nombre = null;
$this->unu_correo = null;
$this->unu_path_foto_inicial = null;
$this->unu_ext_inicial = null;
$this->unu_comentario_inicial = null;
$this->unu_ext_final = null;
$this->unu_path_foto_final = null;
$this->unu_comentario_final = null;
$this->unu_estado = null;
......
......@@ -29,13 +29,13 @@ abstract class BaseUsuarioNutrapharmPeer
const TM_CLASS = 'AppBundle\\Model\\map\\UsuarioNutrapharmTableMap';
/** The total number of columns. */
const NUM_COLUMNS = 14;
const NUM_COLUMNS = 16;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
const NUM_HYDRATE_COLUMNS = 14;
const NUM_HYDRATE_COLUMNS = 16;
/** the column name for the unu_id field */
const UNU_ID = 'usuario_nutrapharm.unu_id';
......@@ -58,9 +58,15 @@ abstract class BaseUsuarioNutrapharmPeer
/** the column name for the unu_path_foto_inicial field */
const UNU_PATH_FOTO_INICIAL = 'usuario_nutrapharm.unu_path_foto_inicial';
/** the column name for the unu_ext_inicial field */
const UNU_EXT_INICIAL = 'usuario_nutrapharm.unu_ext_inicial';
/** the column name for the unu_comentario_inicial field */
const UNU_COMENTARIO_INICIAL = 'usuario_nutrapharm.unu_comentario_inicial';
/** the column name for the unu_ext_final field */
const UNU_EXT_FINAL = 'usuario_nutrapharm.unu_ext_final';
/** the column name for the unu_path_foto_final field */
const UNU_PATH_FOTO_FINAL = 'usuario_nutrapharm.unu_path_foto_final';
......@@ -98,12 +104,12 @@ abstract class BaseUsuarioNutrapharmPeer
* e.g. UsuarioNutrapharmPeer::$fieldNames[UsuarioNutrapharmPeer::TYPE_PHPNAME][0] = 'Id'
*/
protected static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('UnuId', 'UnuUa', 'UnuIp', 'UnuIdNutrapharm', 'UnuNombre', 'UnuCorreo', 'UnuPathFotoInicial', 'UnuComentarioInicial', 'UnuPathFotoFinal', 'UnuComentarioFinal', 'UnuEstado', 'UnuEliminado', 'CreatedAt', 'UpdatedAt', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('unuId', 'unuUa', 'unuIp', 'unuIdNutrapharm', 'unuNombre', 'unuCorreo', 'unuPathFotoInicial', 'unuComentarioInicial', 'unuPathFotoFinal', 'unuComentarioFinal', 'unuEstado', 'unuEliminado', 'createdAt', 'updatedAt', ),
BasePeer::TYPE_COLNAME => array (UsuarioNutrapharmPeer::UNU_ID, UsuarioNutrapharmPeer::UNU_UA, UsuarioNutrapharmPeer::UNU_IP, UsuarioNutrapharmPeer::UNU_ID_NUTRAPHARM, UsuarioNutrapharmPeer::UNU_NOMBRE, UsuarioNutrapharmPeer::UNU_CORREO, UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL, UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL, UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL, UsuarioNutrapharmPeer::UNU_COMENTARIO_FINAL, UsuarioNutrapharmPeer::UNU_ESTADO, UsuarioNutrapharmPeer::UNU_ELIMINADO, UsuarioNutrapharmPeer::CREATED_AT, UsuarioNutrapharmPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME => array ('UNU_ID', 'UNU_UA', 'UNU_IP', 'UNU_ID_NUTRAPHARM', 'UNU_NOMBRE', 'UNU_CORREO', 'UNU_PATH_FOTO_INICIAL', 'UNU_COMENTARIO_INICIAL', 'UNU_PATH_FOTO_FINAL', 'UNU_COMENTARIO_FINAL', 'UNU_ESTADO', 'UNU_ELIMINADO', 'CREATED_AT', 'UPDATED_AT', ),
BasePeer::TYPE_FIELDNAME => array ('unu_id', 'unu_ua', 'unu_ip', 'unu_id_nutrapharm', 'unu_nombre', 'unu_correo', 'unu_path_foto_inicial', 'unu_comentario_inicial', 'unu_path_foto_final', 'unu_comentario_final', 'unu_estado', 'unu_eliminado', 'created_at', 'updated_at', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
BasePeer::TYPE_PHPNAME => array ('UnuId', 'UnuUa', 'UnuIp', 'UnuIdNutrapharm', 'UnuNombre', 'UnuCorreo', 'UnuPathFotoInicial', 'UnuExtInicial', 'UnuComentarioInicial', 'UnuExtFinal', 'UnuPathFotoFinal', 'UnuComentarioFinal', 'UnuEstado', 'UnuEliminado', 'CreatedAt', 'UpdatedAt', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('unuId', 'unuUa', 'unuIp', 'unuIdNutrapharm', 'unuNombre', 'unuCorreo', 'unuPathFotoInicial', 'unuExtInicial', 'unuComentarioInicial', 'unuExtFinal', 'unuPathFotoFinal', 'unuComentarioFinal', 'unuEstado', 'unuEliminado', 'createdAt', 'updatedAt', ),
BasePeer::TYPE_COLNAME => array (UsuarioNutrapharmPeer::UNU_ID, UsuarioNutrapharmPeer::UNU_UA, UsuarioNutrapharmPeer::UNU_IP, UsuarioNutrapharmPeer::UNU_ID_NUTRAPHARM, UsuarioNutrapharmPeer::UNU_NOMBRE, UsuarioNutrapharmPeer::UNU_CORREO, UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL, UsuarioNutrapharmPeer::UNU_EXT_INICIAL, UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL, UsuarioNutrapharmPeer::UNU_EXT_FINAL, UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL, UsuarioNutrapharmPeer::UNU_COMENTARIO_FINAL, UsuarioNutrapharmPeer::UNU_ESTADO, UsuarioNutrapharmPeer::UNU_ELIMINADO, UsuarioNutrapharmPeer::CREATED_AT, UsuarioNutrapharmPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME => array ('UNU_ID', 'UNU_UA', 'UNU_IP', 'UNU_ID_NUTRAPHARM', 'UNU_NOMBRE', 'UNU_CORREO', 'UNU_PATH_FOTO_INICIAL', 'UNU_EXT_INICIAL', 'UNU_COMENTARIO_INICIAL', 'UNU_EXT_FINAL', 'UNU_PATH_FOTO_FINAL', 'UNU_COMENTARIO_FINAL', 'UNU_ESTADO', 'UNU_ELIMINADO', 'CREATED_AT', 'UPDATED_AT', ),
BasePeer::TYPE_FIELDNAME => array ('unu_id', 'unu_ua', 'unu_ip', 'unu_id_nutrapharm', 'unu_nombre', 'unu_correo', 'unu_path_foto_inicial', 'unu_ext_inicial', 'unu_comentario_inicial', 'unu_ext_final', 'unu_path_foto_final', 'unu_comentario_final', 'unu_estado', 'unu_eliminado', 'created_at', 'updated_at', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
);
/**
......@@ -113,12 +119,12 @@ abstract class BaseUsuarioNutrapharmPeer
* e.g. UsuarioNutrapharmPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
protected static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('UnuId' => 0, 'UnuUa' => 1, 'UnuIp' => 2, 'UnuIdNutrapharm' => 3, 'UnuNombre' => 4, 'UnuCorreo' => 5, 'UnuPathFotoInicial' => 6, 'UnuComentarioInicial' => 7, 'UnuPathFotoFinal' => 8, 'UnuComentarioFinal' => 9, 'UnuEstado' => 10, 'UnuEliminado' => 11, 'CreatedAt' => 12, 'UpdatedAt' => 13, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('unuId' => 0, 'unuUa' => 1, 'unuIp' => 2, 'unuIdNutrapharm' => 3, 'unuNombre' => 4, 'unuCorreo' => 5, 'unuPathFotoInicial' => 6, 'unuComentarioInicial' => 7, 'unuPathFotoFinal' => 8, 'unuComentarioFinal' => 9, 'unuEstado' => 10, 'unuEliminado' => 11, 'createdAt' => 12, 'updatedAt' => 13, ),
BasePeer::TYPE_COLNAME => array (UsuarioNutrapharmPeer::UNU_ID => 0, UsuarioNutrapharmPeer::UNU_UA => 1, UsuarioNutrapharmPeer::UNU_IP => 2, UsuarioNutrapharmPeer::UNU_ID_NUTRAPHARM => 3, UsuarioNutrapharmPeer::UNU_NOMBRE => 4, UsuarioNutrapharmPeer::UNU_CORREO => 5, UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL => 6, UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL => 7, UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL => 8, UsuarioNutrapharmPeer::UNU_COMENTARIO_FINAL => 9, UsuarioNutrapharmPeer::UNU_ESTADO => 10, UsuarioNutrapharmPeer::UNU_ELIMINADO => 11, UsuarioNutrapharmPeer::CREATED_AT => 12, UsuarioNutrapharmPeer::UPDATED_AT => 13, ),
BasePeer::TYPE_RAW_COLNAME => array ('UNU_ID' => 0, 'UNU_UA' => 1, 'UNU_IP' => 2, 'UNU_ID_NUTRAPHARM' => 3, 'UNU_NOMBRE' => 4, 'UNU_CORREO' => 5, 'UNU_PATH_FOTO_INICIAL' => 6, 'UNU_COMENTARIO_INICIAL' => 7, 'UNU_PATH_FOTO_FINAL' => 8, 'UNU_COMENTARIO_FINAL' => 9, 'UNU_ESTADO' => 10, 'UNU_ELIMINADO' => 11, 'CREATED_AT' => 12, 'UPDATED_AT' => 13, ),
BasePeer::TYPE_FIELDNAME => array ('unu_id' => 0, 'unu_ua' => 1, 'unu_ip' => 2, 'unu_id_nutrapharm' => 3, 'unu_nombre' => 4, 'unu_correo' => 5, 'unu_path_foto_inicial' => 6, 'unu_comentario_inicial' => 7, 'unu_path_foto_final' => 8, 'unu_comentario_final' => 9, 'unu_estado' => 10, 'unu_eliminado' => 11, 'created_at' => 12, 'updated_at' => 13, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
BasePeer::TYPE_PHPNAME => array ('UnuId' => 0, 'UnuUa' => 1, 'UnuIp' => 2, 'UnuIdNutrapharm' => 3, 'UnuNombre' => 4, 'UnuCorreo' => 5, 'UnuPathFotoInicial' => 6, 'UnuExtInicial' => 7, 'UnuComentarioInicial' => 8, 'UnuExtFinal' => 9, 'UnuPathFotoFinal' => 10, 'UnuComentarioFinal' => 11, 'UnuEstado' => 12, 'UnuEliminado' => 13, 'CreatedAt' => 14, 'UpdatedAt' => 15, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('unuId' => 0, 'unuUa' => 1, 'unuIp' => 2, 'unuIdNutrapharm' => 3, 'unuNombre' => 4, 'unuCorreo' => 5, 'unuPathFotoInicial' => 6, 'unuExtInicial' => 7, 'unuComentarioInicial' => 8, 'unuExtFinal' => 9, 'unuPathFotoFinal' => 10, 'unuComentarioFinal' => 11, 'unuEstado' => 12, 'unuEliminado' => 13, 'createdAt' => 14, 'updatedAt' => 15, ),
BasePeer::TYPE_COLNAME => array (UsuarioNutrapharmPeer::UNU_ID => 0, UsuarioNutrapharmPeer::UNU_UA => 1, UsuarioNutrapharmPeer::UNU_IP => 2, UsuarioNutrapharmPeer::UNU_ID_NUTRAPHARM => 3, UsuarioNutrapharmPeer::UNU_NOMBRE => 4, UsuarioNutrapharmPeer::UNU_CORREO => 5, UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL => 6, UsuarioNutrapharmPeer::UNU_EXT_INICIAL => 7, UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL => 8, UsuarioNutrapharmPeer::UNU_EXT_FINAL => 9, UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL => 10, UsuarioNutrapharmPeer::UNU_COMENTARIO_FINAL => 11, UsuarioNutrapharmPeer::UNU_ESTADO => 12, UsuarioNutrapharmPeer::UNU_ELIMINADO => 13, UsuarioNutrapharmPeer::CREATED_AT => 14, UsuarioNutrapharmPeer::UPDATED_AT => 15, ),
BasePeer::TYPE_RAW_COLNAME => array ('UNU_ID' => 0, 'UNU_UA' => 1, 'UNU_IP' => 2, 'UNU_ID_NUTRAPHARM' => 3, 'UNU_NOMBRE' => 4, 'UNU_CORREO' => 5, 'UNU_PATH_FOTO_INICIAL' => 6, 'UNU_EXT_INICIAL' => 7, 'UNU_COMENTARIO_INICIAL' => 8, 'UNU_EXT_FINAL' => 9, 'UNU_PATH_FOTO_FINAL' => 10, 'UNU_COMENTARIO_FINAL' => 11, 'UNU_ESTADO' => 12, 'UNU_ELIMINADO' => 13, 'CREATED_AT' => 14, 'UPDATED_AT' => 15, ),
BasePeer::TYPE_FIELDNAME => array ('unu_id' => 0, 'unu_ua' => 1, 'unu_ip' => 2, 'unu_id_nutrapharm' => 3, 'unu_nombre' => 4, 'unu_correo' => 5, 'unu_path_foto_inicial' => 6, 'unu_ext_inicial' => 7, 'unu_comentario_inicial' => 8, 'unu_ext_final' => 9, 'unu_path_foto_final' => 10, 'unu_comentario_final' => 11, 'unu_estado' => 12, 'unu_eliminado' => 13, 'created_at' => 14, 'updated_at' => 15, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
);
/**
......@@ -199,7 +205,9 @@ abstract class BaseUsuarioNutrapharmPeer
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_NOMBRE);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_CORREO);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_EXT_INICIAL);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_EXT_FINAL);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_PATH_FOTO_FINAL);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_COMENTARIO_FINAL);
$criteria->addSelectColumn(UsuarioNutrapharmPeer::UNU_ESTADO);
......@@ -214,7 +222,9 @@ abstract class BaseUsuarioNutrapharmPeer
$criteria->addSelectColumn($alias . '.unu_nombre');
$criteria->addSelectColumn($alias . '.unu_correo');
$criteria->addSelectColumn($alias . '.unu_path_foto_inicial');
$criteria->addSelectColumn($alias . '.unu_ext_inicial');
$criteria->addSelectColumn($alias . '.unu_comentario_inicial');
$criteria->addSelectColumn($alias . '.unu_ext_final');
$criteria->addSelectColumn($alias . '.unu_path_foto_final');
$criteria->addSelectColumn($alias . '.unu_comentario_final');
$criteria->addSelectColumn($alias . '.unu_estado');
......
......@@ -25,7 +25,9 @@ use AppBundle\Model\UsuarioNutrapharmQuery;
* @method UsuarioNutrapharmQuery orderByUnuNombre($order = Criteria::ASC) Order by the unu_nombre column
* @method UsuarioNutrapharmQuery orderByUnuCorreo($order = Criteria::ASC) Order by the unu_correo column
* @method UsuarioNutrapharmQuery orderByUnuPathFotoInicial($order = Criteria::ASC) Order by the unu_path_foto_inicial column
* @method UsuarioNutrapharmQuery orderByUnuExtInicial($order = Criteria::ASC) Order by the unu_ext_inicial column
* @method UsuarioNutrapharmQuery orderByUnuComentarioInicial($order = Criteria::ASC) Order by the unu_comentario_inicial column
* @method UsuarioNutrapharmQuery orderByUnuExtFinal($order = Criteria::ASC) Order by the unu_ext_final column
* @method UsuarioNutrapharmQuery orderByUnuPathFotoFinal($order = Criteria::ASC) Order by the unu_path_foto_final column
* @method UsuarioNutrapharmQuery orderByUnuComentarioFinal($order = Criteria::ASC) Order by the unu_comentario_final column
* @method UsuarioNutrapharmQuery orderByUnuEstado($order = Criteria::ASC) Order by the unu_estado column
......@@ -40,7 +42,9 @@ use AppBundle\Model\UsuarioNutrapharmQuery;
* @method UsuarioNutrapharmQuery groupByUnuNombre() Group by the unu_nombre column
* @method UsuarioNutrapharmQuery groupByUnuCorreo() Group by the unu_correo column
* @method UsuarioNutrapharmQuery groupByUnuPathFotoInicial() Group by the unu_path_foto_inicial column
* @method UsuarioNutrapharmQuery groupByUnuExtInicial() Group by the unu_ext_inicial column
* @method UsuarioNutrapharmQuery groupByUnuComentarioInicial() Group by the unu_comentario_inicial column
* @method UsuarioNutrapharmQuery groupByUnuExtFinal() Group by the unu_ext_final column
* @method UsuarioNutrapharmQuery groupByUnuPathFotoFinal() Group by the unu_path_foto_final column
* @method UsuarioNutrapharmQuery groupByUnuComentarioFinal() Group by the unu_comentario_final column
* @method UsuarioNutrapharmQuery groupByUnuEstado() Group by the unu_estado column
......@@ -65,7 +69,9 @@ use AppBundle\Model\UsuarioNutrapharmQuery;
* @method UsuarioNutrapharm findOneByUnuNombre(string $unu_nombre) Return the first UsuarioNutrapharm filtered by the unu_nombre column
* @method UsuarioNutrapharm findOneByUnuCorreo(string $unu_correo) Return the first UsuarioNutrapharm filtered by the unu_correo column
* @method UsuarioNutrapharm findOneByUnuPathFotoInicial(string $unu_path_foto_inicial) Return the first UsuarioNutrapharm filtered by the unu_path_foto_inicial column
* @method UsuarioNutrapharm findOneByUnuExtInicial(string $unu_ext_inicial) Return the first UsuarioNutrapharm filtered by the unu_ext_inicial column
* @method UsuarioNutrapharm findOneByUnuComentarioInicial(string $unu_comentario_inicial) Return the first UsuarioNutrapharm filtered by the unu_comentario_inicial column
* @method UsuarioNutrapharm findOneByUnuExtFinal(string $unu_ext_final) Return the first UsuarioNutrapharm filtered by the unu_ext_final column
* @method UsuarioNutrapharm findOneByUnuPathFotoFinal(string $unu_path_foto_final) Return the first UsuarioNutrapharm filtered by the unu_path_foto_final column
* @method UsuarioNutrapharm findOneByUnuComentarioFinal(string $unu_comentario_final) Return the first UsuarioNutrapharm filtered by the unu_comentario_final column
* @method UsuarioNutrapharm findOneByUnuEstado(int $unu_estado) Return the first UsuarioNutrapharm filtered by the unu_estado column
......@@ -80,7 +86,9 @@ use AppBundle\Model\UsuarioNutrapharmQuery;
* @method array findByUnuNombre(string $unu_nombre) Return UsuarioNutrapharm objects filtered by the unu_nombre column
* @method array findByUnuCorreo(string $unu_correo) Return UsuarioNutrapharm objects filtered by the unu_correo column
* @method array findByUnuPathFotoInicial(string $unu_path_foto_inicial) Return UsuarioNutrapharm objects filtered by the unu_path_foto_inicial column
* @method array findByUnuExtInicial(string $unu_ext_inicial) Return UsuarioNutrapharm objects filtered by the unu_ext_inicial column
* @method array findByUnuComentarioInicial(string $unu_comentario_inicial) Return UsuarioNutrapharm objects filtered by the unu_comentario_inicial column
* @method array findByUnuExtFinal(string $unu_ext_final) Return UsuarioNutrapharm objects filtered by the unu_ext_final column
* @method array findByUnuPathFotoFinal(string $unu_path_foto_final) Return UsuarioNutrapharm objects filtered by the unu_path_foto_final column
* @method array findByUnuComentarioFinal(string $unu_comentario_final) Return UsuarioNutrapharm objects filtered by the unu_comentario_final column
* @method array findByUnuEstado(int $unu_estado) Return UsuarioNutrapharm objects filtered by the unu_estado column
......@@ -192,7 +200,7 @@ abstract class BaseUsuarioNutrapharmQuery extends ModelCriteria
*/
protected function findPkSimple($key, $con)
{
$sql = 'SELECT `unu_id`, `unu_ua`, `unu_ip`, `unu_id_nutrapharm`, `unu_nombre`, `unu_correo`, `unu_path_foto_inicial`, `unu_comentario_inicial`, `unu_path_foto_final`, `unu_comentario_final`, `unu_estado`, `unu_eliminado`, `created_at`, `updated_at` FROM `usuario_nutrapharm` WHERE `unu_id` = :p0';
$sql = 'SELECT `unu_id`, `unu_ua`, `unu_ip`, `unu_id_nutrapharm`, `unu_nombre`, `unu_correo`, `unu_path_foto_inicial`, `unu_ext_inicial`, `unu_comentario_inicial`, `unu_ext_final`, `unu_path_foto_final`, `unu_comentario_final`, `unu_estado`, `unu_eliminado`, `created_at`, `updated_at` FROM `usuario_nutrapharm` WHERE `unu_id` = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
......@@ -497,6 +505,35 @@ abstract class BaseUsuarioNutrapharmQuery extends ModelCriteria
return $this->addUsingAlias(UsuarioNutrapharmPeer::UNU_PATH_FOTO_INICIAL, $unuPathFotoInicial, $comparison);
}
/**
* Filter the query on the unu_ext_inicial column
*
* Example usage:
* <code>
* $query->filterByUnuExtInicial('fooValue'); // WHERE unu_ext_inicial = 'fooValue'
* $query->filterByUnuExtInicial('%fooValue%'); // WHERE unu_ext_inicial LIKE '%fooValue%'
* </code>
*
* @param string $unuExtInicial 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 UsuarioNutrapharmQuery The current query, for fluid interface
*/
public function filterByUnuExtInicial($unuExtInicial = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($unuExtInicial)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $unuExtInicial)) {
$unuExtInicial = str_replace('*', '%', $unuExtInicial);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(UsuarioNutrapharmPeer::UNU_EXT_INICIAL, $unuExtInicial, $comparison);
}
/**
* Filter the query on the unu_comentario_inicial column
*
......@@ -526,6 +563,35 @@ abstract class BaseUsuarioNutrapharmQuery extends ModelCriteria
return $this->addUsingAlias(UsuarioNutrapharmPeer::UNU_COMENTARIO_INICIAL, $unuComentarioInicial, $comparison);
}
/**
* Filter the query on the unu_ext_final column
*
* Example usage:
* <code>
* $query->filterByUnuExtFinal('fooValue'); // WHERE unu_ext_final = 'fooValue'
* $query->filterByUnuExtFinal('%fooValue%'); // WHERE unu_ext_final LIKE '%fooValue%'
* </code>
*
* @param string $unuExtFinal 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 UsuarioNutrapharmQuery The current query, for fluid interface
*/
public function filterByUnuExtFinal($unuExtFinal = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($unuExtFinal)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $unuExtFinal)) {
$unuExtFinal = str_replace('*', '%', $unuExtFinal);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(UsuarioNutrapharmPeer::UNU_EXT_FINAL, $unuExtFinal, $comparison);
}
/**
* Filter the query on the unu_path_foto_final column
*
......
......@@ -33,7 +33,9 @@
<column name="unu_nombre" phpName="UnuNombre" type="VARCHAR" size="250" required="false"/>
<column name="unu_correo" phpName="UnuCorreo" type="VARCHAR" size="250" required="false"/>
<column name="unu_path_foto_inicial" phpName="UnuPathFotoInicial" type="VARCHAR" size="1000" required="false"/>
<column name="unu_ext_inicial" phpName="UnuExtInicial" type="VARCHAR" size="45" required="false"/>
<column name="unu_comentario_inicial" phpName="UnuComentarioInicial" type="VARCHAR" size="1000" required="false"/>
<column name="unu_ext_final" phpName="UnuExtFinal" type="VARCHAR" size="45" required="false"/>
<column name="unu_path_foto_final" phpName="UnuPathFotoFinal" type="VARCHAR" size="1000" required="false"/>
<column name="unu_comentario_final" phpName="UnuComentarioFinal" type="VARCHAR" size="1000" required="false"/>
<column name="unu_estado" phpName="UnuEstado" type="INTEGER" required="false"/>
......
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