/**
  * Reload all already loaded nodes to sync them with updated db
  *
  * @param      Especialidad $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 (EspecialidadPeer::$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(EspecialidadPeer::DATABASE_NAME);
             $criteria->add(EspecialidadPeer::ID, $keys, Criteria::IN);
             $stmt = EspecialidadPeer::doSelectStmt($criteria, $con);
             while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
                 $key = EspecialidadPeer::getPrimaryKeyHashFromRow($row, 0);
                 if (null !== ($object = EspecialidadPeer::getInstanceFromPool($key))) {
                     $object->setLeftValue($row[6]);
                     $object->setRightValue($row[7]);
                     $object->setLevel($row[8]);
                     $object->clearNestedSetChildren();
                 }
             }
             $stmt->closeCursor();
         }
     }
 }