/** * Adds an object to the instance pool. * * Propel keeps cached copies of objects in an instance pool when they are retrieved * from the database. In some cases -- especially when you override doSelect*() * methods in your stub classes -- you may need to explicitly add objects * to the cache in order to ensure that the same objects are always returned by doSelect*() * and retrieveByPK*() calls. * * @param Taula4 $value A Taula4 object. * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). */ public static function addInstanceToPool(Taula4 $obj, $key = null) { if (Propel::isInstancePoolingEnabled()) { if ($key === null) { $key = (string) $obj->getT4id(); } // if key === null self::$instances[$key] = $obj; } }
?> <div class="datos"> <select id="datos2" name="datos2[]" multiple="multiple" class="datos multiple_list"><?php foreach ($datos as $d) { $c = new Criteria(); $c->add(Taula4Peer::T4ID, $d, Criteria::EQUAL); $dato = Taula4Peer::doSelectOne($c); if (!$dato instanceof Taula4) { $dato = new Taula4(); } ?> <option title="<?php echo $dato->getDescripcion(); ?> " value="<?php echo $dato->getT4id(); ?> "> <?php echo $dato->getDescripcion(); ?> </option><?php } ?> </select> </div><?php } ?> </div><br /><?php if ($notificacion->td_otrostiposdatos != '' && ($action == 'modify' || $action == 'view' || $action == 'new')) { ?>