cambios campania

parent 49da380f
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<select id="generador-contenido-selector-fila" class="form-control"> <select id="generador-contenido-selector-fila" class="form-control">
<option value="default" selected>--Seleccione una fila--</option> <option value="default" selected>--Seleccione una fila--</option>
{%for fila in filas%} {%for fila in filas%}
<option value="{{fila.getFilId()}}" >Fila {{fila.getFilId()}}</option> <option value="{{fila.getFilId()}}" >Fila {{fila.getFilValor()}}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<div class="col-lg-6"> <div class="col-lg-6">
<button id="btnGenerarFila" class="btn btn-primary mr-2" onclick="generateSectionRow(event)">Nueva Fila</button> <button id="btnGenerarFila" class="btn btn-primary mr-2" onclick="generateSectionRow(event)">Nueva Fila</button>
</div> </div>
<span class="form-text text-muted">Seleccione una fila donde desplegara el contenido.</span>
</div> </div>
...@@ -21,16 +21,17 @@ ...@@ -21,16 +21,17 @@
<span class="menu-text">Funciones Campañas</span> <span class="menu-text">Funciones Campañas</span>
</span> </span>
</li> </li>
<li class="menu-item " aria-haspopup="true" >
<a href="{{path('campania_listado')}}" class="menu-link "><i class="menu-bullet menu-bullet-line"><span></span></i>
<span class="menu-text">Listado Campaña</span></a>
</li>
{%if is_granted('ROLE_ADMIN')%} {%if is_granted('ROLE_ADMIN')%}
<li class="menu-item " aria-haspopup="true" > <li class="menu-item " aria-haspopup="true" >
<a href="{{path('campania_crear')}}" class="menu-link {% if route == 'campania_crear' %}active{% endif %}"><i class="menu-bullet menu-bullet-line"><span></span></i> <a href="{{path('campania_generando_nueva_campania')}}" class="menu-link {% if route == 'campania_generando_nueva_campania' %}active{% endif %}"><i class="menu-bullet menu-bullet-line"><span></span></i>
<span class="menu-text">Crear Campaña</span></a> <span class="menu-text">Crear Campaña</span></a>
</li> </li>
{% endif %} {% endif %}
<li class="menu-item " aria-haspopup="true" >
<a href="#" class="menu-link "><i class="menu-bullet menu-bullet-line"><span></span></i>
<span class="menu-text">Listado Campaña</span></a>
</li>
</ul> </ul>
</div> </div>
</li> </li>
......
<div id="mensaje-exito-crear-campania" class="alert alert-custom alert-success" role="alert" style="display:none">
<div class="alert-icon"><i class="flaticon-warning"></i></div>
<div id="contenido-mensaje-crear-campania-exito" class="alert-text"></div>
</div>
<div id="mensaje-error-crear-campania" class="alert alert-custom alert-danger" role="alert" style="display:none">
<div class="alert-icon"><i class="flaticon-warning"></i></div>
<div id="contenido-mensaje-crear-campania-error" class="alert-text"></div>
</div>
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<option value="{{seccion.getSecId()}}" {%if seccion.getSecId() == 1%} selected {%endif%}>{{seccion.getSecNombre()}}</option> <option value="{{seccion.getSecId()}}" {%if seccion.getSecId() == 1%} selected {%endif%}>{{seccion.getSecNombre()}}</option>
{% endfor %} {% endfor %}
</select> </select>
<span class="form-text text-muted">Seleccione una seccion para el contenido.</span>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Tipo</label> <label>Tipo</label>
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
<option value="{{tipo.getTipId()}}" {%if tipo.getTipId() == 1%} selected {%endif%}>{{tipo.getTipNombre()}}</option> <option value="{{tipo.getTipId()}}" {%if tipo.getTipId() == 1%} selected {%endif%}>{{tipo.getTipNombre()}}</option>
{% endfor %} {% endfor %}
</select> </select>
<span class="form-text text-muted">Seleccione el tipo de contenido a generar.</span>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Entorno</label> <label>Entorno</label>
...@@ -47,8 +49,9 @@ ...@@ -47,8 +49,9 @@
<option value="{{disposicionEntorno.getDisId()}}" >{{disposicionEntorno.getDisNombre()}}</option> <option value="{{disposicionEntorno.getDisId()}}" >{{disposicionEntorno.getDisNombre()}}</option>
{% endfor %} {% endfor %}
</select> </select>
<span class="form-text text-muted">Seleccione el entorno donde se desplegará el contenido.</span>
</div> </div>
<div class="form-group"> <div id="filaContainer" class="form-group" style="display:block">
<label>Filas</label> <label>Filas</label>
<div id="filaProcessContainer"> <div id="filaProcessContainer">
{% if countFilas > 0 %} {% if countFilas > 0 %}
...@@ -61,23 +64,38 @@ ...@@ -61,23 +64,38 @@
<div id="columnContainer" style="display: {%if countFilas > 0 %} block {%else%} none {%endif%}"> <div id="columnContainer" style="display: {%if countFilas > 0 %} block {%else%} none {%endif%}">
<div class="form-group"> <div class="form-group">
<label>Dispocición Columnas</label> <label>Dispocición Columnas</label>
<select id="generador-contenido-selector-disposicion-entorno" class="form-control"> <select id="generador-contenido-selector-disposicion-entorno-columnas" class="form-control">
<option value="default">--Seleccione una disposición--</option> <option value="default">--Seleccione una disposición--</option>
{%for disposicionColumnaFila in disposicionesColumnasFilas%} {%for disposicionColumnaFila in disposicionesColumnasFilas%}
<option value="{{disposicionColumnaFila.getDcoId()}}" {%if disposicionColumnaFila.getDcoId() == 1%} selected {% endif %}>{{disposicionColumnaFila.getDcoNombre()}}</option> <option value="{{disposicionColumnaFila.getDcoId()}}" {%if disposicionColumnaFila.getDcoId() == 1%} selected {% endif %}>{{disposicionColumnaFila.getDcoNombre()}}</option>
{% endfor %} {% endfor %}
</select> </select>
<span class="form-text text-muted">Seleccione una disposición para las columna de la fila.</span>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Columna</label> <label>Columna</label>
<div id="columnaProcessContainer"> <div id="columnaProcessContainer">
{%include 'backend_content/includes/columnaSelector.html.twig'%} {%include 'backend_content/includes/columnaSelector.html.twig'%}
</div> </div>
<span class="form-text text-muted">Seleccione la columna donde desea desplegar el contenido.</span>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="exampleTextarea">Contenido</label> <div id="text-content-container" style="display:block">
<textarea class="form-control" disabled="disabled" rows="10"></textarea> <label for="exampleTextarea">Contenido</label>
<textarea id="generador-contenido-caja-texto" class="form-control" rows="10"></textarea>
<span class="form-text text-muted">Ingrese el texto a desplegar como contenido.</span>
</div>
<div id="imagen-content-container" style="display:none">
<label for="exampleImagenarea">Contenido</label>
<input id="generador-contenido-caja-imagen" type="url" class="form-control" placeholder=""/>
<span class="form-text text-muted">Ingrese la url de la imagen a desplegar como contenido.</span>
</div>
<div id="video-content-container" style="display:none">
<label for="exampleContenidoarea">Contenido</label>
<input id="generador-contenido-caja-video" type="url" class="form-control" placeholder=""/>
<span class="form-text text-muted">Ingrese la url del video.</span>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -88,8 +106,8 @@ ...@@ -88,8 +106,8 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Cerrar</button> <button id="btnCerrarGeneracionContenido" type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-primary font-weight-bold">Guardar</button> <button id="btnGuardarGeneracionContenido" onclick="saveContenidoJson(event)" type="button" class="btn btn-primary font-weight-bold">Guardar</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -3,30 +3,35 @@ ...@@ -3,30 +3,35 @@
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>Contenido</th> <th>Contenido</th>
<th>Sección</th>
<th>Orden</th>
<th>Tipo</th> <th>Tipo</th>
<th>Sección</th>
<th>Fila</th>
<th>Columna</th>
<th>Entorno</th>
<th>Estado</th> <th>Estado</th>
<th>Acciones</th> <th>Acciones</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> {%for contenido in contenidos%}
<td>1</td> <tr id="cont_{{contenido.getCcoId()}}">
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu quam nulla. Aenean pretium magna quis nisl facilisis, ac volutpat ipsum sagittis. Maecenas tincidunt tellus eu nulla laoreet posuere. Phasellus sed arcu a metus sodales suscipit at id orci. Suspendisse dapibus iaculis ex et volutpat. Fusce id nisi id neque efficitur mattis nec eget eros. Quisque congue, dolor vitae euismod efficitur, nibh massa ultricies massa, a sollicitudin libero dui et risus. Sed leo ligula, placerat eget risus faucibus, elementum tempor dolor.</td> <td>{{contenido.getCcoId()}}</td>
<td>Cuerpo</td> <td>{{contenido.getCcoContenido()}}</td>
<td>1</td> <td>{{contenido.getCcoTipo()}}</td>
<td>1</td> <td>{{contenido.getSecId()}}</td>
<td>1</td> <td>{{contenido.getFila().getFilValor()}}</td>
<td nowrap> <td>{{contenido.getCcoColumna()}}</td>
<a href="#" class="navi-link"> <td>{{contenido.getDisId()}}</td>
<span class="navi-icon"><i class="la la-edit"></i></span> <td>{{contenido.getCcoEstado()}}</td>
</a> <td nowrap>
<a href="#" class="navi-link"> {#<a href="" class="navi-link">
<span class="navi-icon"><i class="la la-trash"></i></span> <span class="navi-icon"><i class="fa fa-lg fa-edit"></i></span>
</a> </a>#}
</td> <a id="delete_{{contenido.getFila().getFilId()}}" href="" onclick="eliminarContenido(event,{{contenido.getCcoId()}},{{contenido.getFila().getFilId()}})" class="navi-link">
</tr> <span class="navi-icon"><i class="fa fa-lg fa-trash"></i></span>
</a>
</td>
</tr>
{%endfor%}
</tbody> </tbody>
</table> </table>
<div class="card-toolbar">
<!--begin::Button-->
<span onclick="crearCampania(event)" class="btn btn-primary font-weight-bolder">
<span class="svg-icon svg-icon-md"><!--begin::Svg Icon | path:assets/media/svg/icons/Design/Flatten.svg--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/>
<circle fill="#000000" cx="9" cy="15" r="6"/>
<path d="M8.8012943,7.00241953 C9.83837775,5.20768121 11.7781543,4 14,4 C17.3137085,4 20,6.6862915 20,10 C20,12.2218457 18.7923188,14.1616223 16.9975805,15.1987057 C16.9991904,15.1326658 17,15.0664274 17,15 C17,10.581722 13.418278,7 9,7 C8.93357256,7 8.86733422,7.00080962 8.8012943,7.00241953 Z" fill="#000000" opacity="0.3"/>
</g>
</svg><!--end::Svg Icon--></span> Agregar Nueva Campaña
</span>
<!--end::Button-->
</div>
<div class="card-toolbar"> <div class="card-toolbar">
<!--begin::Button--> <!--begin::Button-->
<a href="#" onclick="showModal(event)" class="btn btn-primary font-weight-bolder"> <span onclick="showModal(event)" class="btn btn-primary font-weight-bolder">
<span class="svg-icon svg-icon-md"><!--begin::Svg Icon | path:assets/media/svg/icons/Design/Flatten.svg--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1"> <span class="svg-icon svg-icon-md"><!--begin::Svg Icon | path:assets/media/svg/icons/Design/Flatten.svg--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<rect x="0" y="0" width="24" height="24"/> <rect x="0" y="0" width="24" height="24"/>
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
<path d="M8.8012943,7.00241953 C9.83837775,5.20768121 11.7781543,4 14,4 C17.3137085,4 20,6.6862915 20,10 C20,12.2218457 18.7923188,14.1616223 16.9975805,15.1987057 C16.9991904,15.1326658 17,15.0664274 17,15 C17,10.581722 13.418278,7 9,7 C8.93357256,7 8.86733422,7.00080962 8.8012943,7.00241953 Z" fill="#000000" opacity="0.3"/> <path d="M8.8012943,7.00241953 C9.83837775,5.20768121 11.7781543,4 14,4 C17.3137085,4 20,6.6862915 20,10 C20,12.2218457 18.7923188,14.1616223 16.9975805,15.1987057 C16.9991904,15.1326658 17,15.0664274 17,15 C17,10.581722 13.418278,7 9,7 C8.93357256,7 8.86733422,7.00080962 8.8012943,7.00241953 Z" fill="#000000" opacity="0.3"/>
</g> </g>
</svg><!--end::Svg Icon--></span> Agregar Nuevo Contenido </svg><!--end::Svg Icon--></span> Agregar Nuevo Contenido
</a> </span>
<!--end::Button--> <!--end::Button-->
</div> </div>
...@@ -77,11 +77,12 @@ ...@@ -77,11 +77,12 @@
</vendor> </vendor>
</table> </table>
<table name="campania_contenido" phpName="CampaniaContenido" idMethod="native"> <table name="campania_contenido" phpName="CampaniaContenido" idMethod="native">
<column name="cco_id" phpName="CcoId" type="INTEGER" primaryKey="true" required="true"/> <column name="cco_id" phpName="CcoId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="cam_id" phpName="CamId" type="INTEGER" required="false"/> <column name="cam_id" phpName="CamId" type="INTEGER" required="false"/>
<column name="dis_id" phpName="DisId" type="INTEGER" size="6" required="false"/> <column name="dis_id" phpName="DisId" type="INTEGER" size="6" required="false"/>
<column name="sec_id" phpName="SecId" type="INTEGER" size="6" required="false"/> <column name="sec_id" phpName="SecId" type="INTEGER" size="6" required="false"/>
<column name="fiL_id" phpName="FilId" type="INTEGER" size="6" required="false"/> <column name="fil_id" phpName="FilId" type="INTEGER" size="6" required="false"/>
<column name="cco_entorno" phpName="CcoEntorno" type="INTEGER" required="false"/>
<column name="cco_contenido" phpName="CcoContenido" type="LONGVARCHAR" required="false"/> <column name="cco_contenido" phpName="CcoContenido" type="LONGVARCHAR" required="false"/>
<column name="cco_columna" phpName="CcoColumna" type="INTEGER" size="6" required="false"/> <column name="cco_columna" phpName="CcoColumna" type="INTEGER" size="6" required="false"/>
<column name="cco_orden" phpName="CcoOrden" type="INTEGER" required="false"/> <column name="cco_orden" phpName="CcoOrden" type="INTEGER" required="false"/>
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
<reference local="dis_id" foreign="dis_id"/> <reference local="dis_id" foreign="dis_id"/>
</foreign-key> </foreign-key>
<foreign-key foreignTable="fila" name="fk_fil_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="fila" name="fk_fil_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="fiL_id" foreign="fil_id"/> <reference local="fil_id" foreign="fil_id"/>
</foreign-key> </foreign-key>
<foreign-key foreignTable="seccion" name="fk_sec_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="seccion" name="fk_sec_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="sec_id" foreign="sec_id"/> <reference local="sec_id" foreign="sec_id"/>
...@@ -112,7 +113,7 @@ ...@@ -112,7 +113,7 @@
<index-column name="dis_id"/> <index-column name="dis_id"/>
</index> </index>
<index name="fk_fil_pk_fk_idx"> <index name="fk_fil_pk_fk_idx">
<index-column name="fiL_id"/> <index-column name="fil_id"/>
</index> </index>
<vendor type="mysql"> <vendor type="mysql">
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
...@@ -152,6 +153,8 @@ ...@@ -152,6 +153,8 @@
</table> </table>
<table name="fila" phpName="Fila" idMethod="native"> <table name="fila" phpName="Fila" idMethod="native">
<column name="fil_id" phpName="FilId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/> <column name="fil_id" phpName="FilId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="fil_valor" phpName="FilValor" type="INTEGER" required="false"/>
<column name="cam_id" phpName="CamId" type="INTEGER" required="false"/>
<column name="sec_id" phpName="SecId" type="INTEGER" required="false"/> <column name="sec_id" phpName="SecId" type="INTEGER" required="false"/>
<column name="dco_id" phpName="DcoId" type="INTEGER" required="false"/> <column name="dco_id" phpName="DcoId" type="INTEGER" required="false"/>
<column name="fil_num_col" phpName="FilNumCol" type="INTEGER" size="6" required="false" defaultValue="0"/> <column name="fil_num_col" phpName="FilNumCol" type="INTEGER" size="6" required="false" defaultValue="0"/>
...@@ -159,6 +162,9 @@ ...@@ -159,6 +162,9 @@
<column name="fil_eliminado" phpName="FilEliminado" type="INTEGER" size="6" required="false"/> <column name="fil_eliminado" phpName="FilEliminado" type="INTEGER" size="6" required="false"/>
<column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="false"/> <column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="false"/>
<column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="false"/> <column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="false"/>
<foreign-key foreignTable="campania" name="fk_cam_pk_fk_2" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="cam_id" foreign="cam_id"/>
</foreign-key>
<foreign-key foreignTable="disposicion_columnas" name="fk_dco_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="disposicion_columnas" name="fk_dco_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="dco_id" foreign="dco_id"/> <reference local="dco_id" foreign="dco_id"/>
</foreign-key> </foreign-key>
...@@ -171,6 +177,9 @@ ...@@ -171,6 +177,9 @@
<index name="fk_sec_pk_fk_idx"> <index name="fk_sec_pk_fk_idx">
<index-column name="sec_id"/> <index-column name="sec_id"/>
</index> </index>
<index name="fk_cam_pk_fk_2_idx">
<index-column name="cam_id"/>
</index>
<vendor type="mysql"> <vendor type="mysql">
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
</vendor> </vendor>
......
...@@ -4,6 +4,15 @@ namespace AppBundle\Model; ...@@ -4,6 +4,15 @@ namespace AppBundle\Model;
use AppBundle\Model\om\BaseFilaQuery; use AppBundle\Model\om\BaseFilaQuery;
class FilaQuery extends BaseFilaQuery class FilaQuery extends BaseFilaQuery {
{
public static function getNewColumnValue($secId, $camId) {
$value = self::create()
->select('max_column')
->addAsColumn('max_column', 'MAX(fil_valor)')
->where("sec_id = $secId and cam_id = $camId")
->findOne();
return $value;
}
} }
...@@ -6,4 +6,11 @@ use AppBundle\Model\om\BaseTemplate; ...@@ -6,4 +6,11 @@ use AppBundle\Model\om\BaseTemplate;
class Template extends BaseTemplate class Template extends BaseTemplate
{ {
/*Definiciones Estados*/
const ACTIVO_TRUE = 1;
const ACTIVO_FALSE = 2;
/*Eliminado*/
const ELIMINADO_TRUE = 1;
const ELIMINADO_FALSE = 0;
} }
...@@ -40,13 +40,14 @@ class CampaniaContenidoTableMap extends TableMap ...@@ -40,13 +40,14 @@ class CampaniaContenidoTableMap extends TableMap
$this->setPhpName('CampaniaContenido'); $this->setPhpName('CampaniaContenido');
$this->setClassname('AppBundle\\Model\\CampaniaContenido'); $this->setClassname('AppBundle\\Model\\CampaniaContenido');
$this->setPackage('src.AppBundle.Model'); $this->setPackage('src.AppBundle.Model');
$this->setUseIdGenerator(false); $this->setUseIdGenerator(true);
// columns // columns
$this->addPrimaryKey('cco_id', 'CcoId', 'INTEGER', true, null, null); $this->addPrimaryKey('cco_id', 'CcoId', 'INTEGER', true, null, null);
$this->addForeignKey('cam_id', 'CamId', 'INTEGER', 'campania', 'cam_id', false, null, null); $this->addForeignKey('cam_id', 'CamId', 'INTEGER', 'campania', 'cam_id', false, null, null);
$this->addForeignKey('dis_id', 'DisId', 'INTEGER', 'disposicion', 'dis_id', false, 6, null); $this->addForeignKey('dis_id', 'DisId', 'INTEGER', 'disposicion', 'dis_id', false, 6, null);
$this->addForeignKey('sec_id', 'SecId', 'INTEGER', 'seccion', 'sec_id', false, 6, null); $this->addForeignKey('sec_id', 'SecId', 'INTEGER', 'seccion', 'sec_id', false, 6, null);
$this->addForeignKey('fiL_id', 'FilId', 'INTEGER', 'fila', 'fil_id', false, 6, null); $this->addForeignKey('fil_id', 'FilId', 'INTEGER', 'fila', 'fil_id', false, 6, null);
$this->addColumn('cco_entorno', 'CcoEntorno', 'INTEGER', false, null, null);
$this->addColumn('cco_contenido', 'CcoContenido', 'LONGVARCHAR', false, null, null); $this->addColumn('cco_contenido', 'CcoContenido', 'LONGVARCHAR', false, null, null);
$this->addColumn('cco_columna', 'CcoColumna', 'INTEGER', false, 6, null); $this->addColumn('cco_columna', 'CcoColumna', 'INTEGER', false, 6, null);
$this->addColumn('cco_orden', 'CcoOrden', 'INTEGER', false, null, null); $this->addColumn('cco_orden', 'CcoOrden', 'INTEGER', false, null, null);
...@@ -65,7 +66,7 @@ class CampaniaContenidoTableMap extends TableMap ...@@ -65,7 +66,7 @@ class CampaniaContenidoTableMap extends TableMap
{ {
$this->addRelation('Campania', 'AppBundle\\Model\\Campania', RelationMap::MANY_TO_ONE, array('cam_id' => 'cam_id', ), null, null); $this->addRelation('Campania', 'AppBundle\\Model\\Campania', RelationMap::MANY_TO_ONE, array('cam_id' => 'cam_id', ), null, null);
$this->addRelation('Disposicion', 'AppBundle\\Model\\Disposicion', RelationMap::MANY_TO_ONE, array('dis_id' => 'dis_id', ), null, null); $this->addRelation('Disposicion', 'AppBundle\\Model\\Disposicion', RelationMap::MANY_TO_ONE, array('dis_id' => 'dis_id', ), null, null);
$this->addRelation('Fila', 'AppBundle\\Model\\Fila', RelationMap::MANY_TO_ONE, array('fiL_id' => 'fil_id', ), null, null); $this->addRelation('Fila', 'AppBundle\\Model\\Fila', RelationMap::MANY_TO_ONE, array('fil_id' => 'fil_id', ), null, null);
$this->addRelation('Seccion', 'AppBundle\\Model\\Seccion', RelationMap::MANY_TO_ONE, array('sec_id' => 'sec_id', ), null, null); $this->addRelation('Seccion', 'AppBundle\\Model\\Seccion', RelationMap::MANY_TO_ONE, array('sec_id' => 'sec_id', ), null, null);
} // buildRelations() } // buildRelations()
......
...@@ -69,6 +69,7 @@ class CampaniaTableMap extends TableMap ...@@ -69,6 +69,7 @@ class CampaniaTableMap extends TableMap
{ {
$this->addRelation('Template', 'AppBundle\\Model\\Template', RelationMap::MANY_TO_ONE, array('tem_id' => 'tem_id', ), null, null); $this->addRelation('Template', 'AppBundle\\Model\\Template', RelationMap::MANY_TO_ONE, array('tem_id' => 'tem_id', ), null, null);
$this->addRelation('CampaniaContenido', 'AppBundle\\Model\\CampaniaContenido', RelationMap::ONE_TO_MANY, array('cam_id' => 'cam_id', ), null, null, 'CampaniaContenidos'); $this->addRelation('CampaniaContenido', 'AppBundle\\Model\\CampaniaContenido', RelationMap::ONE_TO_MANY, array('cam_id' => 'cam_id', ), null, null, 'CampaniaContenidos');
$this->addRelation('Fila', 'AppBundle\\Model\\Fila', RelationMap::ONE_TO_MANY, array('cam_id' => 'cam_id', ), null, null, 'Filas');
} // buildRelations() } // buildRelations()
/** /**
......
...@@ -44,6 +44,7 @@ class DisposicionColumnasTableMap extends TableMap ...@@ -44,6 +44,7 @@ class DisposicionColumnasTableMap extends TableMap
// columns // columns
$this->addPrimaryKey('dco_id', 'DcoId', 'INTEGER', true, null, null); $this->addPrimaryKey('dco_id', 'DcoId', 'INTEGER', true, null, null);
$this->addColumn('dco_nombre', 'DcoNombre', 'VARCHAR', false, 255, null); $this->addColumn('dco_nombre', 'DcoNombre', 'VARCHAR', false, 255, null);
$this->addColumn('dco_max_col', 'DcoMaxCol', 'INTEGER', false, 6, null);
$this->addColumn('dco_estado', 'DcoEstado', 'INTEGER', false, 6, null); $this->addColumn('dco_estado', 'DcoEstado', 'INTEGER', false, 6, null);
$this->addColumn('dco_eliminado', 'DcoEliminado', 'INTEGER', false, 6, null); $this->addColumn('dco_eliminado', 'DcoEliminado', 'INTEGER', false, 6, null);
// validators // validators
......
...@@ -43,6 +43,8 @@ class FilaTableMap extends TableMap ...@@ -43,6 +43,8 @@ class FilaTableMap extends TableMap
$this->setUseIdGenerator(true); $this->setUseIdGenerator(true);
// columns // columns
$this->addPrimaryKey('fil_id', 'FilId', 'INTEGER', true, null, null); $this->addPrimaryKey('fil_id', 'FilId', 'INTEGER', true, null, null);
$this->addColumn('fil_valor', 'FilValor', 'INTEGER', false, null, null);
$this->addForeignKey('cam_id', 'CamId', 'INTEGER', 'campania', 'cam_id', false, null, null);
$this->addForeignKey('sec_id', 'SecId', 'INTEGER', 'seccion', 'sec_id', false, null, null); $this->addForeignKey('sec_id', 'SecId', 'INTEGER', 'seccion', 'sec_id', false, null, null);
$this->addForeignKey('dco_id', 'DcoId', 'INTEGER', 'disposicion_columnas', 'dco_id', false, null, null); $this->addForeignKey('dco_id', 'DcoId', 'INTEGER', 'disposicion_columnas', 'dco_id', false, null, null);
$this->addColumn('fil_num_col', 'FilNumCol', 'INTEGER', false, 6, 0); $this->addColumn('fil_num_col', 'FilNumCol', 'INTEGER', false, 6, 0);
...@@ -58,9 +60,10 @@ class FilaTableMap extends TableMap ...@@ -58,9 +60,10 @@ class FilaTableMap extends TableMap
*/ */
public function buildRelations() public function buildRelations()
{ {
$this->addRelation('Campania', 'AppBundle\\Model\\Campania', RelationMap::MANY_TO_ONE, array('cam_id' => 'cam_id', ), null, null);
$this->addRelation('DisposicionColumnas', 'AppBundle\\Model\\DisposicionColumnas', RelationMap::MANY_TO_ONE, array('dco_id' => 'dco_id', ), null, null); $this->addRelation('DisposicionColumnas', 'AppBundle\\Model\\DisposicionColumnas', RelationMap::MANY_TO_ONE, array('dco_id' => 'dco_id', ), null, null);
$this->addRelation('Seccion', 'AppBundle\\Model\\Seccion', RelationMap::MANY_TO_ONE, array('sec_id' => 'sec_id', ), null, null); $this->addRelation('Seccion', 'AppBundle\\Model\\Seccion', RelationMap::MANY_TO_ONE, array('sec_id' => 'sec_id', ), null, null);
$this->addRelation('CampaniaContenido', 'AppBundle\\Model\\CampaniaContenido', RelationMap::ONE_TO_MANY, array('fil_id' => 'fiL_id', ), null, null, 'CampaniaContenidos'); $this->addRelation('CampaniaContenido', 'AppBundle\\Model\\CampaniaContenido', RelationMap::ONE_TO_MANY, array('fil_id' => 'fil_id', ), null, null, 'CampaniaContenidos');
} // buildRelations() } // buildRelations()
/** /**
......
This diff is collapsed.
...@@ -33,13 +33,13 @@ abstract class BaseCampaniaContenidoPeer ...@@ -33,13 +33,13 @@ abstract class BaseCampaniaContenidoPeer
const TM_CLASS = 'AppBundle\\Model\\map\\CampaniaContenidoTableMap'; const TM_CLASS = 'AppBundle\\Model\\map\\CampaniaContenidoTableMap';
/** The total number of columns. */ /** The total number of columns. */
const NUM_COLUMNS = 13; const NUM_COLUMNS = 14;
/** 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 = 13; const NUM_HYDRATE_COLUMNS = 14;
/** the column name for the cco_id field */ /** the column name for the cco_id field */
const CCO_ID = 'campania_contenido.cco_id'; const CCO_ID = 'campania_contenido.cco_id';
...@@ -53,8 +53,11 @@ abstract class BaseCampaniaContenidoPeer ...@@ -53,8 +53,11 @@ abstract class BaseCampaniaContenidoPeer
/** the column name for the sec_id field */ /** the column name for the sec_id field */
const SEC_ID = 'campania_contenido.sec_id'; const SEC_ID = 'campania_contenido.sec_id';
/** the column name for the fiL_id field */ /** the column name for the fil_id field */
const FIL_ID = 'campania_contenido.fiL_id'; const FIL_ID = 'campania_contenido.fil_id';
/** the column name for the cco_entorno field */
const CCO_ENTORNO = 'campania_contenido.cco_entorno';
/** the column name for the cco_contenido field */ /** the column name for the cco_contenido field */
const CCO_CONTENIDO = 'campania_contenido.cco_contenido'; const CCO_CONTENIDO = 'campania_contenido.cco_contenido';
...@@ -99,12 +102,12 @@ abstract class BaseCampaniaContenidoPeer ...@@ -99,12 +102,12 @@ abstract class BaseCampaniaContenidoPeer
* e.g. CampaniaContenidoPeer::$fieldNames[CampaniaContenidoPeer::TYPE_PHPNAME][0] = 'Id' * e.g. CampaniaContenidoPeer::$fieldNames[CampaniaContenidoPeer::TYPE_PHPNAME][0] = 'Id'
*/ */
protected static $fieldNames = array ( protected static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('CcoId', 'CamId', 'DisId', 'SecId', 'FilId', 'CcoContenido', 'CcoColumna', 'CcoOrden', 'CcoTipo', 'CcoEstado', 'CcoEliminado', 'CreatedAt', 'UpdatedAt', ), BasePeer::TYPE_PHPNAME => array ('CcoId', 'CamId', 'DisId', 'SecId', 'FilId', 'CcoEntorno', 'CcoContenido', 'CcoColumna', 'CcoOrden', 'CcoTipo', 'CcoEstado', 'CcoEliminado', 'CreatedAt', 'UpdatedAt', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('ccoId', 'camId', 'disId', 'secId', 'filId', 'ccoContenido', 'ccoColumna', 'ccoOrden', 'ccoTipo', 'ccoEstado', 'ccoEliminado', 'createdAt', 'updatedAt', ), BasePeer::TYPE_STUDLYPHPNAME => array ('ccoId', 'camId', 'disId', 'secId', 'filId', 'ccoEntorno', 'ccoContenido', 'ccoColumna', 'ccoOrden', 'ccoTipo', 'ccoEstado', 'ccoEliminado', 'createdAt', 'updatedAt', ),
BasePeer::TYPE_COLNAME => array (CampaniaContenidoPeer::CCO_ID, CampaniaContenidoPeer::CAM_ID, CampaniaContenidoPeer::DIS_ID, CampaniaContenidoPeer::SEC_ID, CampaniaContenidoPeer::FIL_ID, CampaniaContenidoPeer::CCO_CONTENIDO, CampaniaContenidoPeer::CCO_COLUMNA, CampaniaContenidoPeer::CCO_ORDEN, CampaniaContenidoPeer::CCO_TIPO, CampaniaContenidoPeer::CCO_ESTADO, CampaniaContenidoPeer::CCO_ELIMINADO, CampaniaContenidoPeer::CREATED_AT, CampaniaContenidoPeer::UPDATED_AT, ), BasePeer::TYPE_COLNAME => array (CampaniaContenidoPeer::CCO_ID, CampaniaContenidoPeer::CAM_ID, CampaniaContenidoPeer::DIS_ID, CampaniaContenidoPeer::SEC_ID, CampaniaContenidoPeer::FIL_ID, CampaniaContenidoPeer::CCO_ENTORNO, CampaniaContenidoPeer::CCO_CONTENIDO, CampaniaContenidoPeer::CCO_COLUMNA, CampaniaContenidoPeer::CCO_ORDEN, CampaniaContenidoPeer::CCO_TIPO, CampaniaContenidoPeer::CCO_ESTADO, CampaniaContenidoPeer::CCO_ELIMINADO, CampaniaContenidoPeer::CREATED_AT, CampaniaContenidoPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME => array ('CCO_ID', 'CAM_ID', 'DIS_ID', 'SEC_ID', 'FIL_ID', 'CCO_CONTENIDO', 'CCO_COLUMNA', 'CCO_ORDEN', 'CCO_TIPO', 'CCO_ESTADO', 'CCO_ELIMINADO', 'CREATED_AT', 'UPDATED_AT', ), BasePeer::TYPE_RAW_COLNAME => array ('CCO_ID', 'CAM_ID', 'DIS_ID', 'SEC_ID', 'FIL_ID', 'CCO_ENTORNO', 'CCO_CONTENIDO', 'CCO_COLUMNA', 'CCO_ORDEN', 'CCO_TIPO', 'CCO_ESTADO', 'CCO_ELIMINADO', 'CREATED_AT', 'UPDATED_AT', ),
BasePeer::TYPE_FIELDNAME => array ('cco_id', 'cam_id', 'dis_id', 'sec_id', 'fiL_id', 'cco_contenido', 'cco_columna', 'cco_orden', 'cco_tipo', 'cco_estado', 'cco_eliminado', 'created_at', 'updated_at', ), BasePeer::TYPE_FIELDNAME => array ('cco_id', 'cam_id', 'dis_id', 'sec_id', 'fil_id', 'cco_entorno', 'cco_contenido', 'cco_columna', 'cco_orden', 'cco_tipo', 'cco_estado', 'cco_eliminado', 'created_at', 'updated_at', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ) BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
); );
/** /**
...@@ -114,12 +117,12 @@ abstract class BaseCampaniaContenidoPeer ...@@ -114,12 +117,12 @@ abstract class BaseCampaniaContenidoPeer
* e.g. CampaniaContenidoPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 * e.g. CampaniaContenidoPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/ */
protected static $fieldKeys = array ( protected static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('CcoId' => 0, 'CamId' => 1, 'DisId' => 2, 'SecId' => 3, 'FilId' => 4, 'CcoContenido' => 5, 'CcoColumna' => 6, 'CcoOrden' => 7, 'CcoTipo' => 8, 'CcoEstado' => 9, 'CcoEliminado' => 10, 'CreatedAt' => 11, 'UpdatedAt' => 12, ), BasePeer::TYPE_PHPNAME => array ('CcoId' => 0, 'CamId' => 1, 'DisId' => 2, 'SecId' => 3, 'FilId' => 4, 'CcoEntorno' => 5, 'CcoContenido' => 6, 'CcoColumna' => 7, 'CcoOrden' => 8, 'CcoTipo' => 9, 'CcoEstado' => 10, 'CcoEliminado' => 11, 'CreatedAt' => 12, 'UpdatedAt' => 13, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('ccoId' => 0, 'camId' => 1, 'disId' => 2, 'secId' => 3, 'filId' => 4, 'ccoContenido' => 5, 'ccoColumna' => 6, 'ccoOrden' => 7, 'ccoTipo' => 8, 'ccoEstado' => 9, 'ccoEliminado' => 10, 'createdAt' => 11, 'updatedAt' => 12, ), BasePeer::TYPE_STUDLYPHPNAME => array ('ccoId' => 0, 'camId' => 1, 'disId' => 2, 'secId' => 3, 'filId' => 4, 'ccoEntorno' => 5, 'ccoContenido' => 6, 'ccoColumna' => 7, 'ccoOrden' => 8, 'ccoTipo' => 9, 'ccoEstado' => 10, 'ccoEliminado' => 11, 'createdAt' => 12, 'updatedAt' => 13, ),
BasePeer::TYPE_COLNAME => array (CampaniaContenidoPeer::CCO_ID => 0, CampaniaContenidoPeer::CAM_ID => 1, CampaniaContenidoPeer::DIS_ID => 2, CampaniaContenidoPeer::SEC_ID => 3, CampaniaContenidoPeer::FIL_ID => 4, CampaniaContenidoPeer::CCO_CONTENIDO => 5, CampaniaContenidoPeer::CCO_COLUMNA => 6, CampaniaContenidoPeer::CCO_ORDEN => 7, CampaniaContenidoPeer::CCO_TIPO => 8, CampaniaContenidoPeer::CCO_ESTADO => 9, CampaniaContenidoPeer::CCO_ELIMINADO => 10, CampaniaContenidoPeer::CREATED_AT => 11, CampaniaContenidoPeer::UPDATED_AT => 12, ), BasePeer::TYPE_COLNAME => array (CampaniaContenidoPeer::CCO_ID => 0, CampaniaContenidoPeer::CAM_ID => 1, CampaniaContenidoPeer::DIS_ID => 2, CampaniaContenidoPeer::SEC_ID => 3, CampaniaContenidoPeer::FIL_ID => 4, CampaniaContenidoPeer::CCO_ENTORNO => 5, CampaniaContenidoPeer::CCO_CONTENIDO => 6, CampaniaContenidoPeer::CCO_COLUMNA => 7, CampaniaContenidoPeer::CCO_ORDEN => 8, CampaniaContenidoPeer::CCO_TIPO => 9, CampaniaContenidoPeer::CCO_ESTADO => 10, CampaniaContenidoPeer::CCO_ELIMINADO => 11, CampaniaContenidoPeer::CREATED_AT => 12, CampaniaContenidoPeer::UPDATED_AT => 13, ),
BasePeer::TYPE_RAW_COLNAME => array ('CCO_ID' => 0, 'CAM_ID' => 1, 'DIS_ID' => 2, 'SEC_ID' => 3, 'FIL_ID' => 4, 'CCO_CONTENIDO' => 5, 'CCO_COLUMNA' => 6, 'CCO_ORDEN' => 7, 'CCO_TIPO' => 8, 'CCO_ESTADO' => 9, 'CCO_ELIMINADO' => 10, 'CREATED_AT' => 11, 'UPDATED_AT' => 12, ), BasePeer::TYPE_RAW_COLNAME => array ('CCO_ID' => 0, 'CAM_ID' => 1, 'DIS_ID' => 2, 'SEC_ID' => 3, 'FIL_ID' => 4, 'CCO_ENTORNO' => 5, 'CCO_CONTENIDO' => 6, 'CCO_COLUMNA' => 7, 'CCO_ORDEN' => 8, 'CCO_TIPO' => 9, 'CCO_ESTADO' => 10, 'CCO_ELIMINADO' => 11, 'CREATED_AT' => 12, 'UPDATED_AT' => 13, ),
BasePeer::TYPE_FIELDNAME => array ('cco_id' => 0, 'cam_id' => 1, 'dis_id' => 2, 'sec_id' => 3, 'fiL_id' => 4, 'cco_contenido' => 5, 'cco_columna' => 6, 'cco_orden' => 7, 'cco_tipo' => 8, 'cco_estado' => 9, 'cco_eliminado' => 10, 'created_at' => 11, 'updated_at' => 12, ), BasePeer::TYPE_FIELDNAME => array ('cco_id' => 0, 'cam_id' => 1, 'dis_id' => 2, 'sec_id' => 3, 'fil_id' => 4, 'cco_entorno' => 5, 'cco_contenido' => 6, 'cco_columna' => 7, 'cco_orden' => 8, 'cco_tipo' => 9, 'cco_estado' => 10, 'cco_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, ) BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
); );
/** /**
...@@ -198,6 +201,7 @@ abstract class BaseCampaniaContenidoPeer ...@@ -198,6 +201,7 @@ abstract class BaseCampaniaContenidoPeer
$criteria->addSelectColumn(CampaniaContenidoPeer::DIS_ID); $criteria->addSelectColumn(CampaniaContenidoPeer::DIS_ID);
$criteria->addSelectColumn(CampaniaContenidoPeer::SEC_ID); $criteria->addSelectColumn(CampaniaContenidoPeer::SEC_ID);
$criteria->addSelectColumn(CampaniaContenidoPeer::FIL_ID); $criteria->addSelectColumn(CampaniaContenidoPeer::FIL_ID);
$criteria->addSelectColumn(CampaniaContenidoPeer::CCO_ENTORNO);
$criteria->addSelectColumn(CampaniaContenidoPeer::CCO_CONTENIDO); $criteria->addSelectColumn(CampaniaContenidoPeer::CCO_CONTENIDO);
$criteria->addSelectColumn(CampaniaContenidoPeer::CCO_COLUMNA); $criteria->addSelectColumn(CampaniaContenidoPeer::CCO_COLUMNA);
$criteria->addSelectColumn(CampaniaContenidoPeer::CCO_ORDEN); $criteria->addSelectColumn(CampaniaContenidoPeer::CCO_ORDEN);
...@@ -211,7 +215,8 @@ abstract class BaseCampaniaContenidoPeer ...@@ -211,7 +215,8 @@ abstract class BaseCampaniaContenidoPeer
$criteria->addSelectColumn($alias . '.cam_id'); $criteria->addSelectColumn($alias . '.cam_id');
$criteria->addSelectColumn($alias . '.dis_id'); $criteria->addSelectColumn($alias . '.dis_id');
$criteria->addSelectColumn($alias . '.sec_id'); $criteria->addSelectColumn($alias . '.sec_id');
$criteria->addSelectColumn($alias . '.fiL_id'); $criteria->addSelectColumn($alias . '.fil_id');
$criteria->addSelectColumn($alias . '.cco_entorno');
$criteria->addSelectColumn($alias . '.cco_contenido'); $criteria->addSelectColumn($alias . '.cco_contenido');
$criteria->addSelectColumn($alias . '.cco_columna'); $criteria->addSelectColumn($alias . '.cco_columna');
$criteria->addSelectColumn($alias . '.cco_orden'); $criteria->addSelectColumn($alias . '.cco_orden');
...@@ -1950,6 +1955,10 @@ abstract class BaseCampaniaContenidoPeer ...@@ -1950,6 +1955,10 @@ abstract class BaseCampaniaContenidoPeer
$criteria = $values->buildCriteria(); // build Criteria from CampaniaContenido object $criteria = $values->buildCriteria(); // build Criteria from CampaniaContenido object
} }
if ($criteria->containsKey(CampaniaContenidoPeer::CCO_ID) && $criteria->keyContainsValue(CampaniaContenidoPeer::CCO_ID) ) {
throw new PropelException('Cannot insert a value for auto-increment primary key ('.CampaniaContenidoPeer::CCO_ID.')');
}
// Set the correct dbName // Set the correct dbName
$criteria->setDbName(CampaniaContenidoPeer::DATABASE_NAME); $criteria->setDbName(CampaniaContenidoPeer::DATABASE_NAME);
......
...@@ -25,7 +25,8 @@ use AppBundle\Model\Seccion; ...@@ -25,7 +25,8 @@ use AppBundle\Model\Seccion;
* @method CampaniaContenidoQuery orderByCamId($order = Criteria::ASC) Order by the cam_id column * @method CampaniaContenidoQuery orderByCamId($order = Criteria::ASC) Order by the cam_id column
* @method CampaniaContenidoQuery orderByDisId($order = Criteria::ASC) Order by the dis_id column * @method CampaniaContenidoQuery orderByDisId($order = Criteria::ASC) Order by the dis_id column
* @method CampaniaContenidoQuery orderBySecId($order = Criteria::ASC) Order by the sec_id column * @method CampaniaContenidoQuery orderBySecId($order = Criteria::ASC) Order by the sec_id column
* @method CampaniaContenidoQuery orderByFilId($order = Criteria::ASC) Order by the fiL_id column * @method CampaniaContenidoQuery orderByFilId($order = Criteria::ASC) Order by the fil_id column
* @method CampaniaContenidoQuery orderByCcoEntorno($order = Criteria::ASC) Order by the cco_entorno column
* @method CampaniaContenidoQuery orderByCcoContenido($order = Criteria::ASC) Order by the cco_contenido column * @method CampaniaContenidoQuery orderByCcoContenido($order = Criteria::ASC) Order by the cco_contenido column
* @method CampaniaContenidoQuery orderByCcoColumna($order = Criteria::ASC) Order by the cco_columna column * @method CampaniaContenidoQuery orderByCcoColumna($order = Criteria::ASC) Order by the cco_columna column
* @method CampaniaContenidoQuery orderByCcoOrden($order = Criteria::ASC) Order by the cco_orden column * @method CampaniaContenidoQuery orderByCcoOrden($order = Criteria::ASC) Order by the cco_orden column
...@@ -39,7 +40,8 @@ use AppBundle\Model\Seccion; ...@@ -39,7 +40,8 @@ use AppBundle\Model\Seccion;
* @method CampaniaContenidoQuery groupByCamId() Group by the cam_id column * @method CampaniaContenidoQuery groupByCamId() Group by the cam_id column
* @method CampaniaContenidoQuery groupByDisId() Group by the dis_id column * @method CampaniaContenidoQuery groupByDisId() Group by the dis_id column
* @method CampaniaContenidoQuery groupBySecId() Group by the sec_id column * @method CampaniaContenidoQuery groupBySecId() Group by the sec_id column
* @method CampaniaContenidoQuery groupByFilId() Group by the fiL_id column * @method CampaniaContenidoQuery groupByFilId() Group by the fil_id column
* @method CampaniaContenidoQuery groupByCcoEntorno() Group by the cco_entorno column
* @method CampaniaContenidoQuery groupByCcoContenido() Group by the cco_contenido column * @method CampaniaContenidoQuery groupByCcoContenido() Group by the cco_contenido column
* @method CampaniaContenidoQuery groupByCcoColumna() Group by the cco_columna column * @method CampaniaContenidoQuery groupByCcoColumna() Group by the cco_columna column
* @method CampaniaContenidoQuery groupByCcoOrden() Group by the cco_orden column * @method CampaniaContenidoQuery groupByCcoOrden() Group by the cco_orden column
...@@ -75,7 +77,8 @@ use AppBundle\Model\Seccion; ...@@ -75,7 +77,8 @@ use AppBundle\Model\Seccion;
* @method CampaniaContenido findOneByCamId(int $cam_id) Return the first CampaniaContenido filtered by the cam_id column * @method CampaniaContenido findOneByCamId(int $cam_id) Return the first CampaniaContenido filtered by the cam_id column
* @method CampaniaContenido findOneByDisId(int $dis_id) Return the first CampaniaContenido filtered by the dis_id column * @method CampaniaContenido findOneByDisId(int $dis_id) Return the first CampaniaContenido filtered by the dis_id column
* @method CampaniaContenido findOneBySecId(int $sec_id) Return the first CampaniaContenido filtered by the sec_id column * @method CampaniaContenido findOneBySecId(int $sec_id) Return the first CampaniaContenido filtered by the sec_id column
* @method CampaniaContenido findOneByFilId(int $fiL_id) Return the first CampaniaContenido filtered by the fiL_id column * @method CampaniaContenido findOneByFilId(int $fil_id) Return the first CampaniaContenido filtered by the fil_id column
* @method CampaniaContenido findOneByCcoEntorno(int $cco_entorno) Return the first CampaniaContenido filtered by the cco_entorno column
* @method CampaniaContenido findOneByCcoContenido(string $cco_contenido) Return the first CampaniaContenido filtered by the cco_contenido column * @method CampaniaContenido findOneByCcoContenido(string $cco_contenido) Return the first CampaniaContenido filtered by the cco_contenido column
* @method CampaniaContenido findOneByCcoColumna(int $cco_columna) Return the first CampaniaContenido filtered by the cco_columna column * @method CampaniaContenido findOneByCcoColumna(int $cco_columna) Return the first CampaniaContenido filtered by the cco_columna column
* @method CampaniaContenido findOneByCcoOrden(int $cco_orden) Return the first CampaniaContenido filtered by the cco_orden column * @method CampaniaContenido findOneByCcoOrden(int $cco_orden) Return the first CampaniaContenido filtered by the cco_orden column
...@@ -89,7 +92,8 @@ use AppBundle\Model\Seccion; ...@@ -89,7 +92,8 @@ use AppBundle\Model\Seccion;
* @method array findByCamId(int $cam_id) Return CampaniaContenido objects filtered by the cam_id column * @method array findByCamId(int $cam_id) Return CampaniaContenido objects filtered by the cam_id column
* @method array findByDisId(int $dis_id) Return CampaniaContenido objects filtered by the dis_id column * @method array findByDisId(int $dis_id) Return CampaniaContenido objects filtered by the dis_id column
* @method array findBySecId(int $sec_id) Return CampaniaContenido objects filtered by the sec_id column * @method array findBySecId(int $sec_id) Return CampaniaContenido objects filtered by the sec_id column
* @method array findByFilId(int $fiL_id) Return CampaniaContenido objects filtered by the fiL_id column * @method array findByFilId(int $fil_id) Return CampaniaContenido objects filtered by the fil_id column
* @method array findByCcoEntorno(int $cco_entorno) Return CampaniaContenido objects filtered by the cco_entorno column
* @method array findByCcoContenido(string $cco_contenido) Return CampaniaContenido objects filtered by the cco_contenido column * @method array findByCcoContenido(string $cco_contenido) Return CampaniaContenido objects filtered by the cco_contenido column
* @method array findByCcoColumna(int $cco_columna) Return CampaniaContenido objects filtered by the cco_columna column * @method array findByCcoColumna(int $cco_columna) Return CampaniaContenido objects filtered by the cco_columna column
* @method array findByCcoOrden(int $cco_orden) Return CampaniaContenido objects filtered by the cco_orden column * @method array findByCcoOrden(int $cco_orden) Return CampaniaContenido objects filtered by the cco_orden column
...@@ -203,7 +207,7 @@ abstract class BaseCampaniaContenidoQuery extends ModelCriteria ...@@ -203,7 +207,7 @@ abstract class BaseCampaniaContenidoQuery extends ModelCriteria
*/ */
protected function findPkSimple($key, $con) protected function findPkSimple($key, $con)
{ {
$sql = 'SELECT `cco_id`, `cam_id`, `dis_id`, `sec_id`, `fiL_id`, `cco_contenido`, `cco_columna`, `cco_orden`, `cco_tipo`, `cco_estado`, `cco_eliminado`, `created_at`, `updated_at` FROM `campania_contenido` WHERE `cco_id` = :p0'; $sql = 'SELECT `cco_id`, `cam_id`, `dis_id`, `sec_id`, `fil_id`, `cco_entorno`, `cco_contenido`, `cco_columna`, `cco_orden`, `cco_tipo`, `cco_estado`, `cco_eliminado`, `created_at`, `updated_at` FROM `campania_contenido` WHERE `cco_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);
...@@ -467,14 +471,14 @@ abstract class BaseCampaniaContenidoQuery extends ModelCriteria ...@@ -467,14 +471,14 @@ abstract class BaseCampaniaContenidoQuery extends ModelCriteria
} }
/** /**
* Filter the query on the fiL_id column * Filter the query on the fil_id column
* *
* Example usage: * Example usage:
* <code> * <code>
* $query->filterByFilId(1234); // WHERE fiL_id = 1234 * $query->filterByFilId(1234); // WHERE fil_id = 1234
* $query->filterByFilId(array(12, 34)); // WHERE fiL_id IN (12, 34) * $query->filterByFilId(array(12, 34)); // WHERE fil_id IN (12, 34)
* $query->filterByFilId(array('min' => 12)); // WHERE fiL_id >= 12 * $query->filterByFilId(array('min' => 12)); // WHERE fil_id >= 12
* $query->filterByFilId(array('max' => 12)); // WHERE fiL_id <= 12 * $query->filterByFilId(array('max' => 12)); // WHERE fil_id <= 12
* </code> * </code>
* *
* @see filterByFila() * @see filterByFila()
...@@ -510,6 +514,48 @@ abstract class BaseCampaniaContenidoQuery extends ModelCriteria ...@@ -510,6 +514,48 @@ abstract class BaseCampaniaContenidoQuery extends ModelCriteria
return $this->addUsingAlias(CampaniaContenidoPeer::FIL_ID, $filId, $comparison); return $this->addUsingAlias(CampaniaContenidoPeer::FIL_ID, $filId, $comparison);
} }
/**
* Filter the query on the cco_entorno column
*
* Example usage:
* <code>
* $query->filterByCcoEntorno(1234); // WHERE cco_entorno = 1234
* $query->filterByCcoEntorno(array(12, 34)); // WHERE cco_entorno IN (12, 34)
* $query->filterByCcoEntorno(array('min' => 12)); // WHERE cco_entorno >= 12
* $query->filterByCcoEntorno(array('max' => 12)); // WHERE cco_entorno <= 12
* </code>
*
* @param mixed $ccoEntorno The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CampaniaContenidoQuery The current query, for fluid interface
*/
public function filterByCcoEntorno($ccoEntorno = null, $comparison = null)
{
if (is_array($ccoEntorno)) {
$useMinMax = false;
if (isset($ccoEntorno['min'])) {
$this->addUsingAlias(CampaniaContenidoPeer::CCO_ENTORNO, $ccoEntorno['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($ccoEntorno['max'])) {
$this->addUsingAlias(CampaniaContenidoPeer::CCO_ENTORNO, $ccoEntorno['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CampaniaContenidoPeer::CCO_ENTORNO, $ccoEntorno, $comparison);
}
/** /**
* Filter the query on the cco_contenido column * Filter the query on the cco_contenido column
* *
......
...@@ -16,6 +16,7 @@ use AppBundle\Model\Campania; ...@@ -16,6 +16,7 @@ use AppBundle\Model\Campania;
use AppBundle\Model\CampaniaContenido; use AppBundle\Model\CampaniaContenido;
use AppBundle\Model\CampaniaPeer; use AppBundle\Model\CampaniaPeer;
use AppBundle\Model\CampaniaQuery; use AppBundle\Model\CampaniaQuery;
use AppBundle\Model\Fila;
use AppBundle\Model\Template; use AppBundle\Model\Template;
/** /**
...@@ -67,6 +68,10 @@ use AppBundle\Model\Template; ...@@ -67,6 +68,10 @@ use AppBundle\Model\Template;
* @method CampaniaQuery rightJoinCampaniaContenido($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CampaniaContenido relation * @method CampaniaQuery rightJoinCampaniaContenido($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CampaniaContenido relation
* @method CampaniaQuery innerJoinCampaniaContenido($relationAlias = null) Adds a INNER JOIN clause to the query using the CampaniaContenido relation * @method CampaniaQuery innerJoinCampaniaContenido($relationAlias = null) Adds a INNER JOIN clause to the query using the CampaniaContenido relation
* *
* @method CampaniaQuery leftJoinFila($relationAlias = null) Adds a LEFT JOIN clause to the query using the Fila relation
* @method CampaniaQuery rightJoinFila($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Fila relation
* @method CampaniaQuery innerJoinFila($relationAlias = null) Adds a INNER JOIN clause to the query using the Fila relation
*
* @method Campania findOne(PropelPDO $con = null) Return the first Campania matching the query * @method Campania findOne(PropelPDO $con = null) Return the first Campania matching the query
* @method Campania findOneOrCreate(PropelPDO $con = null) Return the first Campania matching the query, or a new Campania object populated from the query conditions when no match is found * @method Campania findOneOrCreate(PropelPDO $con = null) Return the first Campania matching the query, or a new Campania object populated from the query conditions when no match is found
* *
...@@ -1090,6 +1095,80 @@ abstract class BaseCampaniaQuery extends ModelCriteria ...@@ -1090,6 +1095,80 @@ abstract class BaseCampaniaQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'CampaniaContenido', '\AppBundle\Model\CampaniaContenidoQuery'); ->useQuery($relationAlias ? $relationAlias : 'CampaniaContenido', '\AppBundle\Model\CampaniaContenidoQuery');
} }
/**
* Filter the query by a related Fila object
*
* @param Fila|PropelObjectCollection $fila the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CampaniaQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid.
*/
public function filterByFila($fila, $comparison = null)
{
if ($fila instanceof Fila) {
return $this
->addUsingAlias(CampaniaPeer::CAM_ID, $fila->getCamId(), $comparison);
} elseif ($fila instanceof PropelObjectCollection) {
return $this
->useFilaQuery()
->filterByPrimaryKeys($fila->getPrimaryKeys())
->endUse();
} else {
throw new PropelException('filterByFila() only accepts arguments of type Fila or PropelCollection');
}
}
/**
* Adds a JOIN clause to the query using the Fila relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CampaniaQuery The current query, for fluid interface
*/
public function joinFila($relationAlias = null, $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('Fila');
// 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, 'Fila');
}
return $this;
}
/**
* Use the Fila relation Fila 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\FilaQuery A secondary query class using the current class as primary query
*/
public function useFilaQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinFila($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'Fila', '\AppBundle\Model\FilaQuery');
}
/** /**
* Exclude object from result * Exclude object from result
* *
......
...@@ -52,6 +52,12 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -52,6 +52,12 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
*/ */
protected $dco_nombre; protected $dco_nombre;
/**
* The value for the dco_max_col field.
* @var int
*/
protected $dco_max_col;
/** /**
* The value for the dco_estado field. * The value for the dco_estado field.
* @var int * @var int
...@@ -118,6 +124,17 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -118,6 +124,17 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
return $this->dco_nombre; return $this->dco_nombre;
} }
/**
* Get the [dco_max_col] column value.
*
* @return int
*/
public function getDcoMaxCol()
{
return $this->dco_max_col;
}
/** /**
* Get the [dco_estado] column value. * Get the [dco_estado] column value.
* *
...@@ -182,6 +199,27 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -182,6 +199,27 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
return $this; return $this;
} // setDcoNombre() } // setDcoNombre()
/**
* Set the value of [dco_max_col] column.
*
* @param int $v new value
* @return DisposicionColumnas The current object (for fluent API support)
*/
public function setDcoMaxCol($v)
{
if ($v !== null && is_numeric($v)) {
$v = (int) $v;
}
if ($this->dco_max_col !== $v) {
$this->dco_max_col = $v;
$this->modifiedColumns[] = DisposicionColumnasPeer::DCO_MAX_COL;
}
return $this;
} // setDcoMaxCol()
/** /**
* Set the value of [dco_estado] column. * Set the value of [dco_estado] column.
* *
...@@ -258,8 +296,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -258,8 +296,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
$this->dco_id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; $this->dco_id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
$this->dco_nombre = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; $this->dco_nombre = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
$this->dco_estado = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; $this->dco_max_col = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null;
$this->dco_eliminado = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; $this->dco_estado = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null;
$this->dco_eliminado = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
$this->resetModified(); $this->resetModified();
$this->setNew(false); $this->setNew(false);
...@@ -269,7 +308,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -269,7 +308,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
} }
$this->postHydrate($row, $startcol, $rehydrate); $this->postHydrate($row, $startcol, $rehydrate);
return $startcol + 4; // 4 = DisposicionColumnasPeer::NUM_HYDRATE_COLUMNS. return $startcol + 5; // 5 = DisposicionColumnasPeer::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) { } catch (Exception $e) {
throw new PropelException("Error populating DisposicionColumnas object", $e); throw new PropelException("Error populating DisposicionColumnas object", $e);
...@@ -507,6 +546,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -507,6 +546,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_NOMBRE)) { if ($this->isColumnModified(DisposicionColumnasPeer::DCO_NOMBRE)) {
$modifiedColumns[':p' . $index++] = '`dco_nombre`'; $modifiedColumns[':p' . $index++] = '`dco_nombre`';
} }
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_MAX_COL)) {
$modifiedColumns[':p' . $index++] = '`dco_max_col`';
}
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ESTADO)) { if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ESTADO)) {
$modifiedColumns[':p' . $index++] = '`dco_estado`'; $modifiedColumns[':p' . $index++] = '`dco_estado`';
} }
...@@ -530,6 +572,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -530,6 +572,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
case '`dco_nombre`': case '`dco_nombre`':
$stmt->bindValue($identifier, $this->dco_nombre, PDO::PARAM_STR); $stmt->bindValue($identifier, $this->dco_nombre, PDO::PARAM_STR);
break; break;
case '`dco_max_col`':
$stmt->bindValue($identifier, $this->dco_max_col, PDO::PARAM_INT);
break;
case '`dco_estado`': case '`dco_estado`':
$stmt->bindValue($identifier, $this->dco_estado, PDO::PARAM_INT); $stmt->bindValue($identifier, $this->dco_estado, PDO::PARAM_INT);
break; break;
...@@ -685,9 +730,12 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -685,9 +730,12 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
return $this->getDcoNombre(); return $this->getDcoNombre();
break; break;
case 2: case 2:
return $this->getDcoEstado(); return $this->getDcoMaxCol();
break; break;
case 3: case 3:
return $this->getDcoEstado();
break;
case 4:
return $this->getDcoEliminado(); return $this->getDcoEliminado();
break; break;
default: default:
...@@ -721,8 +769,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -721,8 +769,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
$result = array( $result = array(
$keys[0] => $this->getDcoId(), $keys[0] => $this->getDcoId(),
$keys[1] => $this->getDcoNombre(), $keys[1] => $this->getDcoNombre(),
$keys[2] => $this->getDcoEstado(), $keys[2] => $this->getDcoMaxCol(),
$keys[3] => $this->getDcoEliminado(), $keys[3] => $this->getDcoEstado(),
$keys[4] => $this->getDcoEliminado(),
); );
$virtualColumns = $this->virtualColumns; $virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) { foreach ($virtualColumns as $key => $virtualColumn) {
...@@ -774,9 +823,12 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -774,9 +823,12 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
$this->setDcoNombre($value); $this->setDcoNombre($value);
break; break;
case 2: case 2:
$this->setDcoEstado($value); $this->setDcoMaxCol($value);
break; break;
case 3: case 3:
$this->setDcoEstado($value);
break;
case 4:
$this->setDcoEliminado($value); $this->setDcoEliminado($value);
break; break;
} // switch() } // switch()
...@@ -805,8 +857,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -805,8 +857,9 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
if (array_key_exists($keys[0], $arr)) $this->setDcoId($arr[$keys[0]]); if (array_key_exists($keys[0], $arr)) $this->setDcoId($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setDcoNombre($arr[$keys[1]]); if (array_key_exists($keys[1], $arr)) $this->setDcoNombre($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setDcoEstado($arr[$keys[2]]); if (array_key_exists($keys[2], $arr)) $this->setDcoMaxCol($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDcoEliminado($arr[$keys[3]]); if (array_key_exists($keys[3], $arr)) $this->setDcoEstado($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDcoEliminado($arr[$keys[4]]);
} }
/** /**
...@@ -820,6 +873,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -820,6 +873,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ID)) $criteria->add(DisposicionColumnasPeer::DCO_ID, $this->dco_id); if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ID)) $criteria->add(DisposicionColumnasPeer::DCO_ID, $this->dco_id);
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_NOMBRE)) $criteria->add(DisposicionColumnasPeer::DCO_NOMBRE, $this->dco_nombre); if ($this->isColumnModified(DisposicionColumnasPeer::DCO_NOMBRE)) $criteria->add(DisposicionColumnasPeer::DCO_NOMBRE, $this->dco_nombre);
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_MAX_COL)) $criteria->add(DisposicionColumnasPeer::DCO_MAX_COL, $this->dco_max_col);
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ESTADO)) $criteria->add(DisposicionColumnasPeer::DCO_ESTADO, $this->dco_estado); if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ESTADO)) $criteria->add(DisposicionColumnasPeer::DCO_ESTADO, $this->dco_estado);
if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ELIMINADO)) $criteria->add(DisposicionColumnasPeer::DCO_ELIMINADO, $this->dco_eliminado); if ($this->isColumnModified(DisposicionColumnasPeer::DCO_ELIMINADO)) $criteria->add(DisposicionColumnasPeer::DCO_ELIMINADO, $this->dco_eliminado);
...@@ -886,6 +940,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -886,6 +940,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
public function copyInto($copyObj, $deepCopy = false, $makeNew = true) public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{ {
$copyObj->setDcoNombre($this->getDcoNombre()); $copyObj->setDcoNombre($this->getDcoNombre());
$copyObj->setDcoMaxCol($this->getDcoMaxCol());
$copyObj->setDcoEstado($this->getDcoEstado()); $copyObj->setDcoEstado($this->getDcoEstado());
$copyObj->setDcoEliminado($this->getDcoEliminado()); $copyObj->setDcoEliminado($this->getDcoEliminado());
...@@ -1194,6 +1249,31 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -1194,6 +1249,31 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
} }
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this DisposicionColumnas is new, it will return
* an empty collection; or if this DisposicionColumnas has previously
* been saved, it will retrieve related Filas from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in DisposicionColumnas.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelObjectCollection|Fila[] List of Fila objects
*/
public function getFilasJoinCampania($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = FilaQuery::create(null, $criteria);
$query->joinWith('Campania', $join_behavior);
return $this->getFilas($query, $con);
}
/** /**
* If this collection has already been initialized with * If this collection has already been initialized with
* an identical criteria, it returns the collection. * an identical criteria, it returns the collection.
...@@ -1225,6 +1305,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent ...@@ -1225,6 +1305,7 @@ abstract class BaseDisposicionColumnas extends BaseObject implements Persistent
{ {
$this->dco_id = null; $this->dco_id = null;
$this->dco_nombre = null; $this->dco_nombre = null;
$this->dco_max_col = null;
$this->dco_estado = null; $this->dco_estado = null;
$this->dco_eliminado = null; $this->dco_eliminado = null;
$this->alreadyInSave = false; $this->alreadyInSave = false;
......
...@@ -29,13 +29,13 @@ abstract class BaseDisposicionColumnasPeer ...@@ -29,13 +29,13 @@ abstract class BaseDisposicionColumnasPeer
const TM_CLASS = 'AppBundle\\Model\\map\\DisposicionColumnasTableMap'; const TM_CLASS = 'AppBundle\\Model\\map\\DisposicionColumnasTableMap';
/** The total number of columns. */ /** The total number of columns. */
const NUM_COLUMNS = 4; const NUM_COLUMNS = 5;
/** 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 = 4; const NUM_HYDRATE_COLUMNS = 5;
/** the column name for the dco_id field */ /** the column name for the dco_id field */
const DCO_ID = 'disposicion_columnas.dco_id'; const DCO_ID = 'disposicion_columnas.dco_id';
...@@ -43,6 +43,9 @@ abstract class BaseDisposicionColumnasPeer ...@@ -43,6 +43,9 @@ abstract class BaseDisposicionColumnasPeer
/** the column name for the dco_nombre field */ /** the column name for the dco_nombre field */
const DCO_NOMBRE = 'disposicion_columnas.dco_nombre'; const DCO_NOMBRE = 'disposicion_columnas.dco_nombre';
/** the column name for the dco_max_col field */
const DCO_MAX_COL = 'disposicion_columnas.dco_max_col';
/** the column name for the dco_estado field */ /** the column name for the dco_estado field */
const DCO_ESTADO = 'disposicion_columnas.dco_estado'; const DCO_ESTADO = 'disposicion_columnas.dco_estado';
...@@ -68,12 +71,12 @@ abstract class BaseDisposicionColumnasPeer ...@@ -68,12 +71,12 @@ abstract class BaseDisposicionColumnasPeer
* e.g. DisposicionColumnasPeer::$fieldNames[DisposicionColumnasPeer::TYPE_PHPNAME][0] = 'Id' * e.g. DisposicionColumnasPeer::$fieldNames[DisposicionColumnasPeer::TYPE_PHPNAME][0] = 'Id'
*/ */
protected static $fieldNames = array ( protected static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('DcoId', 'DcoNombre', 'DcoEstado', 'DcoEliminado', ), BasePeer::TYPE_PHPNAME => array ('DcoId', 'DcoNombre', 'DcoMaxCol', 'DcoEstado', 'DcoEliminado', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dcoId', 'dcoNombre', 'dcoEstado', 'dcoEliminado', ), BasePeer::TYPE_STUDLYPHPNAME => array ('dcoId', 'dcoNombre', 'dcoMaxCol', 'dcoEstado', 'dcoEliminado', ),
BasePeer::TYPE_COLNAME => array (DisposicionColumnasPeer::DCO_ID, DisposicionColumnasPeer::DCO_NOMBRE, DisposicionColumnasPeer::DCO_ESTADO, DisposicionColumnasPeer::DCO_ELIMINADO, ), BasePeer::TYPE_COLNAME => array (DisposicionColumnasPeer::DCO_ID, DisposicionColumnasPeer::DCO_NOMBRE, DisposicionColumnasPeer::DCO_MAX_COL, DisposicionColumnasPeer::DCO_ESTADO, DisposicionColumnasPeer::DCO_ELIMINADO, ),
BasePeer::TYPE_RAW_COLNAME => array ('DCO_ID', 'DCO_NOMBRE', 'DCO_ESTADO', 'DCO_ELIMINADO', ), BasePeer::TYPE_RAW_COLNAME => array ('DCO_ID', 'DCO_NOMBRE', 'DCO_MAX_COL', 'DCO_ESTADO', 'DCO_ELIMINADO', ),
BasePeer::TYPE_FIELDNAME => array ('dco_id', 'dco_nombre', 'dco_estado', 'dco_eliminado', ), BasePeer::TYPE_FIELDNAME => array ('dco_id', 'dco_nombre', 'dco_max_col', 'dco_estado', 'dco_eliminado', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
); );
/** /**
...@@ -83,12 +86,12 @@ abstract class BaseDisposicionColumnasPeer ...@@ -83,12 +86,12 @@ abstract class BaseDisposicionColumnasPeer
* e.g. DisposicionColumnasPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0 * e.g. DisposicionColumnasPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/ */
protected static $fieldKeys = array ( protected static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('DcoId' => 0, 'DcoNombre' => 1, 'DcoEstado' => 2, 'DcoEliminado' => 3, ), BasePeer::TYPE_PHPNAME => array ('DcoId' => 0, 'DcoNombre' => 1, 'DcoMaxCol' => 2, 'DcoEstado' => 3, 'DcoEliminado' => 4, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dcoId' => 0, 'dcoNombre' => 1, 'dcoEstado' => 2, 'dcoEliminado' => 3, ), BasePeer::TYPE_STUDLYPHPNAME => array ('dcoId' => 0, 'dcoNombre' => 1, 'dcoMaxCol' => 2, 'dcoEstado' => 3, 'dcoEliminado' => 4, ),
BasePeer::TYPE_COLNAME => array (DisposicionColumnasPeer::DCO_ID => 0, DisposicionColumnasPeer::DCO_NOMBRE => 1, DisposicionColumnasPeer::DCO_ESTADO => 2, DisposicionColumnasPeer::DCO_ELIMINADO => 3, ), BasePeer::TYPE_COLNAME => array (DisposicionColumnasPeer::DCO_ID => 0, DisposicionColumnasPeer::DCO_NOMBRE => 1, DisposicionColumnasPeer::DCO_MAX_COL => 2, DisposicionColumnasPeer::DCO_ESTADO => 3, DisposicionColumnasPeer::DCO_ELIMINADO => 4, ),
BasePeer::TYPE_RAW_COLNAME => array ('DCO_ID' => 0, 'DCO_NOMBRE' => 1, 'DCO_ESTADO' => 2, 'DCO_ELIMINADO' => 3, ), BasePeer::TYPE_RAW_COLNAME => array ('DCO_ID' => 0, 'DCO_NOMBRE' => 1, 'DCO_MAX_COL' => 2, 'DCO_ESTADO' => 3, 'DCO_ELIMINADO' => 4, ),
BasePeer::TYPE_FIELDNAME => array ('dco_id' => 0, 'dco_nombre' => 1, 'dco_estado' => 2, 'dco_eliminado' => 3, ), BasePeer::TYPE_FIELDNAME => array ('dco_id' => 0, 'dco_nombre' => 1, 'dco_max_col' => 2, 'dco_estado' => 3, 'dco_eliminado' => 4, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, ) BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
); );
/** /**
...@@ -164,11 +167,13 @@ abstract class BaseDisposicionColumnasPeer ...@@ -164,11 +167,13 @@ abstract class BaseDisposicionColumnasPeer
if (null === $alias) { if (null === $alias) {
$criteria->addSelectColumn(DisposicionColumnasPeer::DCO_ID); $criteria->addSelectColumn(DisposicionColumnasPeer::DCO_ID);
$criteria->addSelectColumn(DisposicionColumnasPeer::DCO_NOMBRE); $criteria->addSelectColumn(DisposicionColumnasPeer::DCO_NOMBRE);
$criteria->addSelectColumn(DisposicionColumnasPeer::DCO_MAX_COL);
$criteria->addSelectColumn(DisposicionColumnasPeer::DCO_ESTADO); $criteria->addSelectColumn(DisposicionColumnasPeer::DCO_ESTADO);
$criteria->addSelectColumn(DisposicionColumnasPeer::DCO_ELIMINADO); $criteria->addSelectColumn(DisposicionColumnasPeer::DCO_ELIMINADO);
} else { } else {
$criteria->addSelectColumn($alias . '.dco_id'); $criteria->addSelectColumn($alias . '.dco_id');
$criteria->addSelectColumn($alias . '.dco_nombre'); $criteria->addSelectColumn($alias . '.dco_nombre');
$criteria->addSelectColumn($alias . '.dco_max_col');
$criteria->addSelectColumn($alias . '.dco_estado'); $criteria->addSelectColumn($alias . '.dco_estado');
$criteria->addSelectColumn($alias . '.dco_eliminado'); $criteria->addSelectColumn($alias . '.dco_eliminado');
} }
......
...@@ -20,11 +20,13 @@ use AppBundle\Model\Fila; ...@@ -20,11 +20,13 @@ use AppBundle\Model\Fila;
/** /**
* @method DisposicionColumnasQuery orderByDcoId($order = Criteria::ASC) Order by the dco_id column * @method DisposicionColumnasQuery orderByDcoId($order = Criteria::ASC) Order by the dco_id column
* @method DisposicionColumnasQuery orderByDcoNombre($order = Criteria::ASC) Order by the dco_nombre column * @method DisposicionColumnasQuery orderByDcoNombre($order = Criteria::ASC) Order by the dco_nombre column
* @method DisposicionColumnasQuery orderByDcoMaxCol($order = Criteria::ASC) Order by the dco_max_col column
* @method DisposicionColumnasQuery orderByDcoEstado($order = Criteria::ASC) Order by the dco_estado column * @method DisposicionColumnasQuery orderByDcoEstado($order = Criteria::ASC) Order by the dco_estado column
* @method DisposicionColumnasQuery orderByDcoEliminado($order = Criteria::ASC) Order by the dco_eliminado column * @method DisposicionColumnasQuery orderByDcoEliminado($order = Criteria::ASC) Order by the dco_eliminado column
* *
* @method DisposicionColumnasQuery groupByDcoId() Group by the dco_id column * @method DisposicionColumnasQuery groupByDcoId() Group by the dco_id column
* @method DisposicionColumnasQuery groupByDcoNombre() Group by the dco_nombre column * @method DisposicionColumnasQuery groupByDcoNombre() Group by the dco_nombre column
* @method DisposicionColumnasQuery groupByDcoMaxCol() Group by the dco_max_col column
* @method DisposicionColumnasQuery groupByDcoEstado() Group by the dco_estado column * @method DisposicionColumnasQuery groupByDcoEstado() Group by the dco_estado column
* @method DisposicionColumnasQuery groupByDcoEliminado() Group by the dco_eliminado column * @method DisposicionColumnasQuery groupByDcoEliminado() Group by the dco_eliminado column
* *
...@@ -40,11 +42,13 @@ use AppBundle\Model\Fila; ...@@ -40,11 +42,13 @@ use AppBundle\Model\Fila;
* @method DisposicionColumnas findOneOrCreate(PropelPDO $con = null) Return the first DisposicionColumnas matching the query, or a new DisposicionColumnas object populated from the query conditions when no match is found * @method DisposicionColumnas findOneOrCreate(PropelPDO $con = null) Return the first DisposicionColumnas matching the query, or a new DisposicionColumnas object populated from the query conditions when no match is found
* *
* @method DisposicionColumnas findOneByDcoNombre(string $dco_nombre) Return the first DisposicionColumnas filtered by the dco_nombre column * @method DisposicionColumnas findOneByDcoNombre(string $dco_nombre) Return the first DisposicionColumnas filtered by the dco_nombre column
* @method DisposicionColumnas findOneByDcoMaxCol(int $dco_max_col) Return the first DisposicionColumnas filtered by the dco_max_col column
* @method DisposicionColumnas findOneByDcoEstado(int $dco_estado) Return the first DisposicionColumnas filtered by the dco_estado column * @method DisposicionColumnas findOneByDcoEstado(int $dco_estado) Return the first DisposicionColumnas filtered by the dco_estado column
* @method DisposicionColumnas findOneByDcoEliminado(int $dco_eliminado) Return the first DisposicionColumnas filtered by the dco_eliminado column * @method DisposicionColumnas findOneByDcoEliminado(int $dco_eliminado) Return the first DisposicionColumnas filtered by the dco_eliminado column
* *
* @method array findByDcoId(int $dco_id) Return DisposicionColumnas objects filtered by the dco_id column * @method array findByDcoId(int $dco_id) Return DisposicionColumnas objects filtered by the dco_id column
* @method array findByDcoNombre(string $dco_nombre) Return DisposicionColumnas objects filtered by the dco_nombre column * @method array findByDcoNombre(string $dco_nombre) Return DisposicionColumnas objects filtered by the dco_nombre column
* @method array findByDcoMaxCol(int $dco_max_col) Return DisposicionColumnas objects filtered by the dco_max_col column
* @method array findByDcoEstado(int $dco_estado) Return DisposicionColumnas objects filtered by the dco_estado column * @method array findByDcoEstado(int $dco_estado) Return DisposicionColumnas objects filtered by the dco_estado column
* @method array findByDcoEliminado(int $dco_eliminado) Return DisposicionColumnas objects filtered by the dco_eliminado column * @method array findByDcoEliminado(int $dco_eliminado) Return DisposicionColumnas objects filtered by the dco_eliminado column
*/ */
...@@ -152,7 +156,7 @@ abstract class BaseDisposicionColumnasQuery extends ModelCriteria ...@@ -152,7 +156,7 @@ abstract class BaseDisposicionColumnasQuery extends ModelCriteria
*/ */
protected function findPkSimple($key, $con) protected function findPkSimple($key, $con)
{ {
$sql = 'SELECT `dco_id`, `dco_nombre`, `dco_estado`, `dco_eliminado` FROM `disposicion_columnas` WHERE `dco_id` = :p0'; $sql = 'SELECT `dco_id`, `dco_nombre`, `dco_max_col`, `dco_estado`, `dco_eliminado` FROM `disposicion_columnas` WHERE `dco_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);
...@@ -312,6 +316,48 @@ abstract class BaseDisposicionColumnasQuery extends ModelCriteria ...@@ -312,6 +316,48 @@ abstract class BaseDisposicionColumnasQuery extends ModelCriteria
return $this->addUsingAlias(DisposicionColumnasPeer::DCO_NOMBRE, $dcoNombre, $comparison); return $this->addUsingAlias(DisposicionColumnasPeer::DCO_NOMBRE, $dcoNombre, $comparison);
} }
/**
* Filter the query on the dco_max_col column
*
* Example usage:
* <code>
* $query->filterByDcoMaxCol(1234); // WHERE dco_max_col = 1234
* $query->filterByDcoMaxCol(array(12, 34)); // WHERE dco_max_col IN (12, 34)
* $query->filterByDcoMaxCol(array('min' => 12)); // WHERE dco_max_col >= 12
* $query->filterByDcoMaxCol(array('max' => 12)); // WHERE dco_max_col <= 12
* </code>
*
* @param mixed $dcoMaxCol The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return DisposicionColumnasQuery The current query, for fluid interface
*/
public function filterByDcoMaxCol($dcoMaxCol = null, $comparison = null)
{
if (is_array($dcoMaxCol)) {
$useMinMax = false;
if (isset($dcoMaxCol['min'])) {
$this->addUsingAlias(DisposicionColumnasPeer::DCO_MAX_COL, $dcoMaxCol['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dcoMaxCol['max'])) {
$this->addUsingAlias(DisposicionColumnasPeer::DCO_MAX_COL, $dcoMaxCol['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(DisposicionColumnasPeer::DCO_MAX_COL, $dcoMaxCol, $comparison);
}
/** /**
* Filter the query on the dco_estado column * Filter the query on the dco_estado column
* *
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -1548,6 +1548,31 @@ abstract class BaseSeccion extends BaseObject implements Persistent ...@@ -1548,6 +1548,31 @@ abstract class BaseSeccion extends BaseObject implements Persistent
} }
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this Seccion is new, it will return
* an empty collection; or if this Seccion has previously
* been saved, it will retrieve related Filas from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in Seccion.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelObjectCollection|Fila[] List of Fila objects
*/
public function getFilasJoinCampania($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = FilaQuery::create(null, $criteria);
$query->joinWith('Campania', $join_behavior);
return $this->getFilas($query, $con);
}
/** /**
* If this collection has already been initialized with * If this collection has already been initialized with
* an identical criteria, it returns the collection. * an identical criteria, it returns the collection.
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--Autogenerated by PropelSchemaReverseTask class.--> <!--Autogenerated by PropelSchemaReverseTask class.-->
<database name="conn1" defaultIdMethod="native" namespace="AppBundle\Model"> <database name="conn1" defaultIdMethod="native" namespace="AppBundle\Model">
<table name="backend_rol" phpName="BackendRol" idMethod="native"> <table name="backend_rol" phpName="BackendRol" idMethod="native">
<column name="bro_id" phpName="BroId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/> <column name="bro_id" phpName="BroId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="bro_rol" phpName="BroRol" type="VARCHAR" size="45" required="false"/> <column name="bro_rol" phpName="BroRol" type="VARCHAR" size="45" required="false"/>
<column name="bro_nombre" phpName="BroNombre" type="VARCHAR" size="100" required="false"/> <column name="bro_nombre" phpName="BroNombre" type="VARCHAR" size="100" required="false"/>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<column name="bus_nombres" phpName="BusNombres" type="VARCHAR" size="100" required="false"/> <column name="bus_nombres" phpName="BusNombres" type="VARCHAR" size="100" required="false"/>
<column name="bus_estado" phpName="BusEstado" type="SMALLINT" required="false"/> <column name="bus_estado" phpName="BusEstado" type="SMALLINT" required="false"/>
<column name="bus_eliminado" phpName="BusEliminado" type="TINYINT" required="false"/> <column name="bus_eliminado" phpName="BusEliminado" type="TINYINT" required="false"/>
<behavior name="timestampable" /> <behavior name="timestampable" />
<foreign-key foreignTable="empresa" name="FK_empresa_usuario" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="empresa" name="FK_empresa_usuario" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="emp_id" foreign="emp_id"/> <reference local="emp_id" foreign="emp_id"/>
</foreign-key> </foreign-key>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<table name="backendusuario_backendrol" phpName="BackendusuarioBackendrol" idMethod="native"> <table name="backendusuario_backendrol" phpName="BackendusuarioBackendrol" idMethod="native">
<column name="bro_id" phpName="BroId" type="INTEGER" primaryKey="true" required="true"/> <column name="bro_id" phpName="BroId" type="INTEGER" primaryKey="true" required="true"/>
<column name="bus_id" phpName="BusId" type="INTEGER" primaryKey="true" required="true"/> <column name="bus_id" phpName="BusId" type="INTEGER" primaryKey="true" required="true"/>
<behavior name="timestampable" /> <behavior name="timestampable" />
<foreign-key foreignTable="backend_rol" name="FK_union_rol_usuario_rol" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="backend_rol" name="FK_union_rol_usuario_rol" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="bro_id" foreign="bro_id"/> <reference local="bro_id" foreign="bro_id"/>
</foreign-key> </foreign-key>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<column name="cam_fecha_inicio" phpName="CamFechaInicio" type="TIMESTAMP" required="false"/> <column name="cam_fecha_inicio" phpName="CamFechaInicio" type="TIMESTAMP" required="false"/>
<column name="cam_fecha_fin" phpName="CamFechaFin" type="TIMESTAMP" required="false"/> <column name="cam_fecha_fin" phpName="CamFechaFin" type="TIMESTAMP" required="false"/>
<column name="cam_json_estructura" phpName="CamJsonEstructura" type="LONGVARCHAR" required="false"/> <column name="cam_json_estructura" phpName="CamJsonEstructura" type="LONGVARCHAR" required="false"/>
<behavior name="timestampable" /> <behavior name="timestampable" />
<foreign-key foreignTable="template" name="fk_template_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="template" name="fk_template_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="tem_id" foreign="tem_id"/> <reference local="tem_id" foreign="tem_id"/>
</foreign-key> </foreign-key>
...@@ -74,18 +74,19 @@ ...@@ -74,18 +74,19 @@
</vendor> </vendor>
</table> </table>
<table name="campania_contenido" phpName="CampaniaContenido" idMethod="native"> <table name="campania_contenido" phpName="CampaniaContenido" idMethod="native">
<column name="cco_id" phpName="CcoId" type="INTEGER" primaryKey="true" required="true"/> <column name="cco_id" phpName="CcoId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="cam_id" phpName="CamId" type="INTEGER" required="false"/> <column name="cam_id" phpName="CamId" type="INTEGER" required="false"/>
<column name="dis_id" phpName="DisId" type="INTEGER" size="6" required="false"/> <column name="dis_id" phpName="DisId" type="INTEGER" size="6" required="false"/>
<column name="sec_id" phpName="SecId" type="INTEGER" size="6" required="false"/> <column name="sec_id" phpName="SecId" type="INTEGER" size="6" required="false"/>
<column name="fiL_id" phpName="FilId" type="INTEGER" size="6" required="false"/> <column name="fil_id" phpName="FilId" type="INTEGER" size="6" required="false"/>
<column name="cco_entorno" phpName="CcoEntorno" type="INTEGER" required="false"/>
<column name="cco_contenido" phpName="CcoContenido" type="LONGVARCHAR" required="false"/> <column name="cco_contenido" phpName="CcoContenido" type="LONGVARCHAR" required="false"/>
<column name="cco_columna" phpName="CcoColumna" type="INTEGER" size="6" required="false"/> <column name="cco_columna" phpName="CcoColumna" type="INTEGER" size="6" required="false"/>
<column name="cco_orden" phpName="CcoOrden" type="INTEGER" required="false"/> <column name="cco_orden" phpName="CcoOrden" type="INTEGER" required="false"/>
<column name="cco_tipo" phpName="CcoTipo" type="INTEGER" required="false"/> <column name="cco_tipo" phpName="CcoTipo" type="INTEGER" required="false"/>
<column name="cco_estado" phpName="CcoEstado" type="INTEGER" required="false"/> <column name="cco_estado" phpName="CcoEstado" type="INTEGER" required="false"/>
<column name="cco_eliminado" phpName="CcoEliminado" type="INTEGER" required="false"/> <column name="cco_eliminado" phpName="CcoEliminado" type="INTEGER" required="false"/>
<behavior name="timestampable" /> <behavior name="timestampable" />
<foreign-key foreignTable="campania" name="fk_cam_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="campania" name="fk_cam_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="cam_id" foreign="cam_id"/> <reference local="cam_id" foreign="cam_id"/>
</foreign-key> </foreign-key>
...@@ -93,7 +94,7 @@ ...@@ -93,7 +94,7 @@
<reference local="dis_id" foreign="dis_id"/> <reference local="dis_id" foreign="dis_id"/>
</foreign-key> </foreign-key>
<foreign-key foreignTable="fila" name="fk_fil_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="fila" name="fk_fil_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="fiL_id" foreign="fil_id"/> <reference local="fil_id" foreign="fil_id"/>
</foreign-key> </foreign-key>
<foreign-key foreignTable="seccion" name="fk_sec_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="seccion" name="fk_sec_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="sec_id" foreign="sec_id"/> <reference local="sec_id" foreign="sec_id"/>
...@@ -108,7 +109,7 @@ ...@@ -108,7 +109,7 @@
<index-column name="dis_id"/> <index-column name="dis_id"/>
</index> </index>
<index name="fk_fil_pk_fk_idx"> <index name="fk_fil_pk_fk_idx">
<index-column name="fiL_id"/> <index-column name="fil_id"/>
</index> </index>
<vendor type="mysql"> <vendor type="mysql">
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
...@@ -126,6 +127,7 @@ ...@@ -126,6 +127,7 @@
<table name="disposicion_columnas" phpName="DisposicionColumnas" idMethod="native"> <table name="disposicion_columnas" phpName="DisposicionColumnas" idMethod="native">
<column name="dco_id" phpName="DcoId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/> <column name="dco_id" phpName="DcoId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="dco_nombre" phpName="DcoNombre" type="VARCHAR" size="255" required="false"/> <column name="dco_nombre" phpName="DcoNombre" type="VARCHAR" size="255" required="false"/>
<column name="dco_max_col" phpName="DcoMaxCol" type="INTEGER" size="6" required="false"/>
<column name="dco_estado" phpName="DcoEstado" type="INTEGER" size="6" required="false"/> <column name="dco_estado" phpName="DcoEstado" type="INTEGER" size="6" required="false"/>
<column name="dco_eliminado" phpName="DcoEliminado" type="INTEGER" size="6" required="false"/> <column name="dco_eliminado" phpName="DcoEliminado" type="INTEGER" size="6" required="false"/>
<vendor type="mysql"> <vendor type="mysql">
...@@ -139,19 +141,24 @@ ...@@ -139,19 +141,24 @@
<column name="emp_url_cliente" phpName="EmpUrlCliente" type="VARCHAR" size="250" required="false"/> <column name="emp_url_cliente" phpName="EmpUrlCliente" type="VARCHAR" size="250" required="false"/>
<column name="emp_estado" phpName="EmpEstado" type="INTEGER" required="false"/> <column name="emp_estado" phpName="EmpEstado" type="INTEGER" required="false"/>
<column name="emp_eliminado" phpName="EmpEliminado" type="TINYINT" required="false"/> <column name="emp_eliminado" phpName="EmpEliminado" type="TINYINT" required="false"/>
<behavior name="timestampable" /> <behavior name="timestampable" />
<vendor type="mysql"> <vendor type="mysql">
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
</vendor> </vendor>
</table> </table>
<table name="fila" phpName="Fila" idMethod="native"> <table name="fila" phpName="Fila" idMethod="native">
<column name="fil_id" phpName="FilId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/> <column name="fil_id" phpName="FilId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="fil_valor" phpName="FilValor" type="INTEGER" required="false"/>
<column name="cam_id" phpName="CamId" type="INTEGER" required="false"/>
<column name="sec_id" phpName="SecId" type="INTEGER" required="false"/> <column name="sec_id" phpName="SecId" type="INTEGER" required="false"/>
<column name="dco_id" phpName="DcoId" type="INTEGER" required="false"/> <column name="dco_id" phpName="DcoId" type="INTEGER" required="false"/>
<column name="fil_num_col" phpName="FilNumCol" type="INTEGER" size="6" required="false" defaultValue="0"/> <column name="fil_num_col" phpName="FilNumCol" type="INTEGER" size="6" required="false" defaultValue="0"/>
<column name="fil_estado" phpName="FilEstado" type="INTEGER" size="6" required="false"/> <column name="fil_estado" phpName="FilEstado" type="INTEGER" size="6" required="false"/>
<column name="fil_eliminado" phpName="FilEliminado" type="INTEGER" size="6" required="false"/> <column name="fil_eliminado" phpName="FilEliminado" type="INTEGER" size="6" required="false"/>
<behavior name="timestampable" /> <behavior name="timestampable" />
<foreign-key foreignTable="campania" name="fk_cam_pk_fk_2" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="cam_id" foreign="cam_id"/>
</foreign-key>
<foreign-key foreignTable="disposicion_columnas" name="fk_dco_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT"> <foreign-key foreignTable="disposicion_columnas" name="fk_dco_pk_fk" onDelete="RESTRICT" onUpdate="RESTRICT">
<reference local="dco_id" foreign="dco_id"/> <reference local="dco_id" foreign="dco_id"/>
</foreign-key> </foreign-key>
...@@ -164,6 +171,9 @@ ...@@ -164,6 +171,9 @@
<index name="fk_sec_pk_fk_idx"> <index name="fk_sec_pk_fk_idx">
<index-column name="sec_id"/> <index-column name="sec_id"/>
</index> </index>
<index name="fk_cam_pk_fk_2_idx">
<index-column name="cam_id"/>
</index>
<vendor type="mysql"> <vendor type="mysql">
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
</vendor> </vendor>
...@@ -194,7 +204,7 @@ ...@@ -194,7 +204,7 @@
<column name="tem_css" phpName="TemCss" type="VARCHAR" size="1000" required="false"/> <column name="tem_css" phpName="TemCss" type="VARCHAR" size="1000" required="false"/>
<column name="tem_estado" phpName="TemEstado" type="INTEGER" size="6" required="false"/> <column name="tem_estado" phpName="TemEstado" type="INTEGER" size="6" required="false"/>
<column name="tem_eliminado" phpName="TemEliminado" type="INTEGER" size="6" required="false"/> <column name="tem_eliminado" phpName="TemEliminado" type="INTEGER" size="6" required="false"/>
<behavior name="timestampable" /> <behavior name="timestampable" />
<vendor type="mysql"> <vendor type="mysql">
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
</vendor> </vendor>
......
campania_listado:
path: /listado/campanias
defaults: {_controller: CampaniaBundle:Campania:listadoCampanias}
campania_generando_nueva_campania:
path: /generando/nueva/campania
defaults: {_controller: CampaniaBundle:Campania:generandoNuevaCampania}
campania_crear: campania_crear:
path: /crear path: /nueva/{camId}
defaults: { _controller: CampaniaBundle:Campania:nuevaCampania} defaults: { _controller: CampaniaBundle:Campania:nuevaCampania, camId : none}
requirements:
camId: '\d+'
campania_eliminar:
path: /eliminar/{camId}
defaults: {_controller : CampaniaBundle:Campania:eliminarCampania, camId: none}
requirements:
camId: '\d+'
campania_eliminar_contenido:
path: /eliminar/contenido
defaults: {_controller: CampaniaBundle:Campania:eliminarContenido}
campania_crear_fila_seccion: campania_crear_fila_seccion:
path: /crear/fila/seccion path: /crear/fila/seccion
defaults: { _controller: CampaniaBundle:Campania:generarNuevaFila} defaults: { _controller: CampaniaBundle:Campania:generarNuevaFila}
...@@ -13,5 +33,12 @@ campania_recargar_fila_selector: ...@@ -13,5 +33,12 @@ campania_recargar_fila_selector:
campania_recargar_columna_selector: campania_recargar_columna_selector:
path: /recargar/columna/selector path: /recargar/columna/selector
defaults: { _controller: CampaniaBundle:Campania:reloadColumnaSelector} defaults: { _controller: CampaniaBundle:Campania:reloadColumnaSelector}
campania_save_contenido:
path: /guardar/contenido/campania
defaults: {_controller: CampaniaBundle:Campania:saveContenido}
campania_actualizar_con_contenido:
path: /actualizar/campania
defaults: {_controller: CampaniaBundle:Campania:actualizarCampania}
\ No newline at end of file
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