public function save(PropelPDO $con = null) { // New records need to be initialized with orden = maxOrden +1 if (!$this->getPrimaryKey()) { $con = $con ? $con : Propel::getConnection(ParametroPeer::DATABASE_NAME); try { $con->beginTransaction(); $this->setOrden(ParametroPeer::getMaxOrden($this->getTipoParametro()) + 1); parent::save(); $con->commit(); } catch (Exception $e) { $con->rollback(); throw $e; } } else { parent::save(); } }
?> <th id="sf_admin_list_th_estado"><?php echo __('Estado'); ?> </th> <th id="sf_admin_list_th_acciones"><?php echo __('Acciones'); ?> </th> </tr> </thead> <?php $max = ParametroPeer::getMaxOrden($parametro_def->getPrimaryKey()); ?> <tbody> <?php $i = 1; foreach ($parametros as $parametro) { $odd = fmod(++$i, 2); $td_class = "sf_admin_row_" . $odd; if ($parametro->getPrimaryKey() == $id_parametro_editado) { $td_class = "highlight strong"; } if ($parametro->getFechaBorrado()) { } ?> <tr class="<?php