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);
......
......@@ -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