public static function doSelectJoinAllExceptDocente(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN)
 {
     $c = clone $c;
     if ($c->getDbName() == Propel::getDefaultDB()) {
         $c->setDbName(self::DATABASE_NAME);
     }
     RelDivisionActividadDocentePeer::addSelectColumns($c);
     $startcol2 = RelDivisionActividadDocentePeer::NUM_COLUMNS - RelDivisionActividadDocentePeer::NUM_LAZY_LOAD_COLUMNS;
     DivisionPeer::addSelectColumns($c);
     $startcol3 = $startcol2 + (DivisionPeer::NUM_COLUMNS - DivisionPeer::NUM_LAZY_LOAD_COLUMNS);
     ActividadPeer::addSelectColumns($c);
     $startcol4 = $startcol3 + (ActividadPeer::NUM_COLUMNS - ActividadPeer::NUM_LAZY_LOAD_COLUMNS);
     EventoPeer::addSelectColumns($c);
     $startcol5 = $startcol4 + (EventoPeer::NUM_COLUMNS - EventoPeer::NUM_LAZY_LOAD_COLUMNS);
     $c->addJoin(array(RelDivisionActividadDocentePeer::FK_DIVISION_ID), array(DivisionPeer::ID), $join_behavior);
     $c->addJoin(array(RelDivisionActividadDocentePeer::FK_ACTIVIDAD_ID), array(ActividadPeer::ID), $join_behavior);
     $c->addJoin(array(RelDivisionActividadDocentePeer::FK_EVENTO_ID), array(EventoPeer::ID), $join_behavior);
     $stmt = BasePeer::doSelect($c, $con);
     $results = array();
     while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
         $key1 = RelDivisionActividadDocentePeer::getPrimaryKeyHashFromRow($row, 0);
         if (null !== ($obj1 = RelDivisionActividadDocentePeer::getInstanceFromPool($key1))) {
         } else {
             $omClass = RelDivisionActividadDocentePeer::getOMClass();
             $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
             $obj1 = new $cls();
             $obj1->hydrate($row);
             RelDivisionActividadDocentePeer::addInstanceToPool($obj1, $key1);
         }
         $key2 = DivisionPeer::getPrimaryKeyHashFromRow($row, $startcol2);
         if ($key2 !== null) {
             $obj2 = DivisionPeer::getInstanceFromPool($key2);
             if (!$obj2) {
                 $omClass = DivisionPeer::getOMClass();
                 $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
                 $obj2 = new $cls();
                 $obj2->hydrate($row, $startcol2);
                 DivisionPeer::addInstanceToPool($obj2, $key2);
             }
             $obj2->addRelDivisionActividadDocente($obj1);
         }
         $key3 = ActividadPeer::getPrimaryKeyHashFromRow($row, $startcol3);
         if ($key3 !== null) {
             $obj3 = ActividadPeer::getInstanceFromPool($key3);
             if (!$obj3) {
                 $omClass = ActividadPeer::getOMClass();
                 $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
                 $obj3 = new $cls();
                 $obj3->hydrate($row, $startcol3);
                 ActividadPeer::addInstanceToPool($obj3, $key3);
             }
             $obj3->addRelDivisionActividadDocente($obj1);
         }
         $key4 = EventoPeer::getPrimaryKeyHashFromRow($row, $startcol4);
         if ($key4 !== null) {
             $obj4 = EventoPeer::getInstanceFromPool($key4);
             if (!$obj4) {
                 $omClass = EventoPeer::getOMClass();
                 $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
                 $obj4 = new $cls();
                 $obj4->hydrate($row, $startcol4);
                 EventoPeer::addInstanceToPool($obj4, $key4);
             }
             $obj4->addRelDivisionActividadDocente($obj1);
         }
         $results[] = $obj1;
     }
     $stmt->closeCursor();
     return $results;
 }
예제 #2
0
 public static function populateObjects(PDOStatement $stmt)
 {
     $results = array();
     $cls = EventoPeer::getOMClass();
     $cls = substr('.' . $cls, strrpos('.' . $cls, '.') + 1);
     while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
         $key = EventoPeer::getPrimaryKeyHashFromRow($row, 0);
         if (null !== ($obj = EventoPeer::getInstanceFromPool($key))) {
             $results[] = $obj;
         } else {
             $obj = new $cls();
             $obj->hydrate($row);
             $results[] = $obj;
             EventoPeer::addInstanceToPool($obj, $key);
         }
     }
     $stmt->closeCursor();
     return $results;
 }
예제 #3
0
 public static function doSelectJoinAllExceptHorarioescolartipo(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN)
 {
     $c = clone $c;
     if ($c->getDbName() == Propel::getDefaultDB()) {
         $c->setDbName(self::DATABASE_NAME);
     }
     HorarioescolarPeer::addSelectColumns($c);
     $startcol2 = HorarioescolarPeer::NUM_COLUMNS - HorarioescolarPeer::NUM_LAZY_LOAD_COLUMNS;
     EventoPeer::addSelectColumns($c);
     $startcol3 = $startcol2 + (EventoPeer::NUM_COLUMNS - EventoPeer::NUM_LAZY_LOAD_COLUMNS);
     EstablecimientoPeer::addSelectColumns($c);
     $startcol4 = $startcol3 + (EstablecimientoPeer::NUM_COLUMNS - EstablecimientoPeer::NUM_LAZY_LOAD_COLUMNS);
     TurnoPeer::addSelectColumns($c);
     $startcol5 = $startcol4 + (TurnoPeer::NUM_COLUMNS - TurnoPeer::NUM_LAZY_LOAD_COLUMNS);
     $c->addJoin(array(HorarioescolarPeer::FK_EVENTO_ID), array(EventoPeer::ID), $join_behavior);
     $c->addJoin(array(HorarioescolarPeer::FK_ESTABLECIMIENTO_ID), array(EstablecimientoPeer::ID), $join_behavior);
     $c->addJoin(array(HorarioescolarPeer::FK_TURNO_ID), array(TurnoPeer::ID), $join_behavior);
     $stmt = BasePeer::doSelect($c, $con);
     $results = array();
     while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
         $key1 = HorarioescolarPeer::getPrimaryKeyHashFromRow($row, 0);
         if (null !== ($obj1 = HorarioescolarPeer::getInstanceFromPool($key1))) {
         } else {
             $omClass = HorarioescolarPeer::getOMClass();
             $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
             $obj1 = new $cls();
             $obj1->hydrate($row);
             HorarioescolarPeer::addInstanceToPool($obj1, $key1);
         }
         $key2 = EventoPeer::getPrimaryKeyHashFromRow($row, $startcol2);
         if ($key2 !== null) {
             $obj2 = EventoPeer::getInstanceFromPool($key2);
             if (!$obj2) {
                 $omClass = EventoPeer::getOMClass();
                 $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
                 $obj2 = new $cls();
                 $obj2->hydrate($row, $startcol2);
                 EventoPeer::addInstanceToPool($obj2, $key2);
             }
             $obj2->addHorarioescolar($obj1);
         }
         $key3 = EstablecimientoPeer::getPrimaryKeyHashFromRow($row, $startcol3);
         if ($key3 !== null) {
             $obj3 = EstablecimientoPeer::getInstanceFromPool($key3);
             if (!$obj3) {
                 $omClass = EstablecimientoPeer::getOMClass();
                 $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
                 $obj3 = new $cls();
                 $obj3->hydrate($row, $startcol3);
                 EstablecimientoPeer::addInstanceToPool($obj3, $key3);
             }
             $obj3->addHorarioescolar($obj1);
         }
         $key4 = TurnoPeer::getPrimaryKeyHashFromRow($row, $startcol4);
         if ($key4 !== null) {
             $obj4 = TurnoPeer::getInstanceFromPool($key4);
             if (!$obj4) {
                 $omClass = TurnoPeer::getOMClass();
                 $cls = substr('.' . $omClass, strrpos('.' . $omClass, '.') + 1);
                 $obj4 = new $cls();
                 $obj4->hydrate($row, $startcol4);
                 TurnoPeer::addInstanceToPool($obj4, $key4);
             }
             $obj4->addHorarioescolar($obj1);
         }
         $results[] = $obj1;
     }
     $stmt->closeCursor();
     return $results;
 }