/**
  * 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(Taula3Peer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(Taula3Peer::DATABASE_NAME);
         $criteria->add(Taula3Peer::T3ID, $pks, Criteria::IN);
         $objs = Taula3Peer::doSelect($criteria, $con);
     }
     return $objs;
 }
Esempio n. 2
0
                    ?>
                                        <option title="<?php 
                    echo $colectivo->getDescripcion();
                    ?>
" value="<?php 
                    echo $colectivo->getT3id();
                    ?>
">
                                            <?php 
                    echo $colectivo->getDescripcion();
                    ?>
                                        </option><?php 
                }
            }
        } elseif (!isset($tipo_noti)) {
            $colectivos_ = Taula3Peer::doSelect(new Criteria());
            foreach ($colectivos_ as $col) {
                if (!in_array($col->getT3id(), $colectivos)) {
                    ?>
                                        <option title="<?php 
                    echo $col->getDescripcion();
                    ?>
" value="<?php 
                    echo $col->getT3id();
                    ?>
">
                                            <?php 
                    echo $col->getDescripcion();
                    ?>
                                        </option><?php 
                }