/**
  * Reload all already loaded nodes to sync them with updated db
  *
  * @param      Causadiferido $prune		Object to prune from the update
  * @param      PropelPDO $con		Connection to use.
  */
 public static function updateLoadedNodes($prune = null, PropelPDO $con = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         $keys = array();
         foreach (CausadiferidoPeer::$instances as $obj) {
             if (!$prune || !$prune->equals($obj)) {
                 $keys[] = $obj->getPrimaryKey();
             }
         }
         if (!empty($keys)) {
             // We don't need to alter the object instance pool; we're just modifying these ones
             // already in the pool.
             $criteria = new Criteria(CausadiferidoPeer::DATABASE_NAME);
             $criteria->add(CausadiferidoPeer::ID, $keys, Criteria::IN);
             $stmt = CausadiferidoPeer::doSelectStmt($criteria, $con);
             while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
                 $key = CausadiferidoPeer::getPrimaryKeyHashFromRow($row, 0);
                 if (null !== ($object = CausadiferidoPeer::getInstanceFromPool($key))) {
                     $object->setLeftValue($row[6]);
                     $object->setRightValue($row[7]);
                     $object->setLevel($row[8]);
                     $object->clearNestedSetChildren();
                 }
             }
             $stmt->closeCursor();
         }
     }
 }