/** * Retrieve multiple objects by pkey. * * @param array $pks List of primary keys * @param PropelPDO $con the connection to use * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function retrieveByPKs($pks, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(Taula1Peer::DATABASE_NAME, Propel::CONNECTION_READ); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(Taula1Peer::DATABASE_NAME); $criteria->add(Taula1Peer::T1ID, $pks, Criteria::IN); $objs = Taula1Peer::doSelect($criteria, $con); } return $objs; }
<br /> <input id="txt1" type="text" name="denomsocial_1" size="60" class="text required mayus" maxlength="140" value="<?php echo $notificacion->rf_nombre; ?> " /> </div> <div id="list1_div" class="fcell"><?php echo __('Actividad'); ?> <br /> <select id="list1" name="actividad_1" class="list required"> <option value="0">... <?php echo __('Seleccione uno'); ?> ...</option><?php $actividades = Taula1Peer::doSelect(new Criteria()); foreach ($actividades as $taula1 => $act) { if ($act->getT1id() == $notificacion->rf_actividad) { ?> <option title="<?php echo $act->getActividad(); ?> " value="<?php echo $act->getT1id(); ?> " selected="selected"><?php echo $act->getActividad(); ?> </option><?php } else { ?>