public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(CalendariovacunacionPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     if (!$criteria->hasSelectClause()) {
         $criteria = clone $criteria;
         CalendariovacunacionPeer::addSelectColumns($criteria);
     }
     $criteria->setDbName(self::DATABASE_NAME);
     return BasePeer::doSelect($criteria, $con);
 }
 public static function doSelectJoinAllExceptAlumno(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN)
 {
     $c = clone $c;
     if ($c->getDbName() == Propel::getDefaultDB()) {
         $c->setDbName(self::DATABASE_NAME);
     }
     RelCalendariovacunacionAlumnoPeer::addSelectColumns($c);
     $startcol2 = RelCalendariovacunacionAlumnoPeer::NUM_COLUMNS - RelCalendariovacunacionAlumnoPeer::NUM_LAZY_LOAD_COLUMNS;
     CalendariovacunacionPeer::addSelectColumns($c);
     $startcol3 = $startcol2 + (CalendariovacunacionPeer::NUM_COLUMNS - CalendariovacunacionPeer::NUM_LAZY_LOAD_COLUMNS);
     $c->addJoin(array(RelCalendariovacunacionAlumnoPeer::FK_CALENDARIOVACUNACION_ID), array(CalendariovacunacionPeer::ID), $join_behavior);
     $stmt = BasePeer::doSelect($c, $con);
     $results = array();
     while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
         $key1 = RelCalendariovacunacionAlumnoPeer::getPrimaryKeyHashFromRow($row, 0);
         if (null !== ($obj1 = RelCalendariovacunacionAlumnoPeer::getInstanceFromPool($key1))) {
         } else {
             $omClass = RelCalendariovacunacionAlumnoPeer::getOMClass();
             $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
             $obj1 = new $cls();
             $obj1->hydrate($row);
             RelCalendariovacunacionAlumnoPeer::addInstanceToPool($obj1, $key1);
         }
         $key2 = CalendariovacunacionPeer::getPrimaryKeyHashFromRow($row, $startcol2);
         if ($key2 !== null) {
             $obj2 = CalendariovacunacionPeer::getInstanceFromPool($key2);
             if (!$obj2) {
                 $omClass = CalendariovacunacionPeer::getOMClass();
                 $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
                 $obj2 = new $cls();
                 $obj2->hydrate($row, $startcol2);
                 CalendariovacunacionPeer::addInstanceToPool($obj2, $key2);
             }
             $obj2->addRelCalendariovacunacionAlumno($obj1);
         }
         $results[] = $obj1;
     }
     $stmt->closeCursor();
     return $results;
 }