/** * 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; } }
<a class="datos_link" href="#" id="add_datos">>></a> <a class="datos_link" href="#" id="remove_datos"><<</a> </div><?php } if ($notificacion->tipo == 'Supresion') { echo __('En solicitudes de supresión este nodo va vacío.'); } else { ?> <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 } ?>