public static function doSelectJoinAllExceptLocationRelatedByLocation2(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } TestApplicantPeer::addSelectColumns($c); $startcol2 = TestApplicantPeer::NUM_COLUMNS - TestApplicantPeer::NUM_LAZY_LOAD_COLUMNS + 1; TestApplicantDetailPeer::addSelectColumns($c); $startcol3 = $startcol2 + TestApplicantDetailPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol4 = $startcol3 + DepartmentPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol5 = $startcol4 + ClassGroupPeer::NUM_COLUMNS; RegTestPeriodPeer::addSelectColumns($c); $startcol6 = $startcol5 + RegTestPeriodPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol7 = $startcol6 + DepartmentPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol8 = $startcol7 + ClassGroupPeer::NUM_COLUMNS; RegTestPeriodPeer::addSelectColumns($c); $startcol9 = $startcol8 + RegTestPeriodPeer::NUM_COLUMNS; $c->addJoin(TestApplicantPeer::TEST_APPLICANT_DETAIL_ID, TestApplicantDetailPeer::ID); $c->addJoin(TestApplicantPeer::DEPARTMENT_1, DepartmentPeer::ID); $c->addJoin(TestApplicantPeer::CLASS_GROUP1, ClassGroupPeer::ID); $c->addJoin(TestApplicantPeer::REG_TEST_PERIOD1, RegTestPeriodPeer::ID); $c->addJoin(TestApplicantPeer::DEPARTMENT_2, DepartmentPeer::ID); $c->addJoin(TestApplicantPeer::CLASS_GROUP2, ClassGroupPeer::ID); $c->addJoin(TestApplicantPeer::REG_TEST_PERIOD2, RegTestPeriodPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = TestApplicantPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = TestApplicantDetailPeer::getOMClass(); $cls = Propel::import($omClass); $obj2 = new $cls(); $obj2->hydrate($rs, $startcol2); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj2 = $temp_obj1->getTestApplicantDetail(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addTestApplicant($obj1); break; } } if ($newObject) { $obj2->initTestApplicants(); $obj2->addTestApplicant($obj1); } $omClass = DepartmentPeer::getOMClass(); $cls = Propel::import($omClass); $obj3 = new $cls(); $obj3->hydrate($rs, $startcol3); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj3 = $temp_obj1->getDepartmentRelatedByDepartment1(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addTestApplicantRelatedByDepartment1($obj1); break; } } if ($newObject) { $obj3->initTestApplicantsRelatedByDepartment1(); $obj3->addTestApplicantRelatedByDepartment1($obj1); } $omClass = ClassGroupPeer::getOMClass(); $cls = Propel::import($omClass); $obj4 = new $cls(); $obj4->hydrate($rs, $startcol4); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj4 = $temp_obj1->getClassGroupRelatedByClassGroup1(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addTestApplicantRelatedByClassGroup1($obj1); break; } } if ($newObject) { $obj4->initTestApplicantsRelatedByClassGroup1(); $obj4->addTestApplicantRelatedByClassGroup1($obj1); } $omClass = RegTestPeriodPeer::getOMClass(); $cls = Propel::import($omClass); $obj5 = new $cls(); $obj5->hydrate($rs, $startcol5); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj5 = $temp_obj1->getRegTestPeriodRelatedByRegTestPeriod1(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addTestApplicantRelatedByRegTestPeriod1($obj1); break; } } if ($newObject) { $obj5->initTestApplicantsRelatedByRegTestPeriod1(); $obj5->addTestApplicantRelatedByRegTestPeriod1($obj1); } $omClass = DepartmentPeer::getOMClass(); $cls = Propel::import($omClass); $obj6 = new $cls(); $obj6->hydrate($rs, $startcol6); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj6 = $temp_obj1->getDepartmentRelatedByDepartment2(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addTestApplicantRelatedByDepartment2($obj1); break; } } if ($newObject) { $obj6->initTestApplicantsRelatedByDepartment2(); $obj6->addTestApplicantRelatedByDepartment2($obj1); } $omClass = ClassGroupPeer::getOMClass(); $cls = Propel::import($omClass); $obj7 = new $cls(); $obj7->hydrate($rs, $startcol7); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj7 = $temp_obj1->getClassGroupRelatedByClassGroup2(); if ($temp_obj7->getPrimaryKey() === $obj7->getPrimaryKey()) { $newObject = false; $temp_obj7->addTestApplicantRelatedByClassGroup2($obj1); break; } } if ($newObject) { $obj7->initTestApplicantsRelatedByClassGroup2(); $obj7->addTestApplicantRelatedByClassGroup2($obj1); } $omClass = RegTestPeriodPeer::getOMClass(); $cls = Propel::import($omClass); $obj8 = new $cls(); $obj8->hydrate($rs, $startcol8); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj8 = $temp_obj1->getRegTestPeriodRelatedByRegTestPeriod2(); if ($temp_obj8->getPrimaryKey() === $obj8->getPrimaryKey()) { $newObject = false; $temp_obj8->addTestApplicantRelatedByRegTestPeriod2($obj1); break; } } if ($newObject) { $obj8->initTestApplicantsRelatedByRegTestPeriod2(); $obj8->addTestApplicantRelatedByRegTestPeriod2($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptCountry(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } TestApplicantDetailPeer::addSelectColumns($c); $startcol2 = TestApplicantDetailPeer::NUM_COLUMNS - TestApplicantDetailPeer::NUM_LAZY_LOAD_COLUMNS + 1; RegionPeer::addSelectColumns($c); $startcol3 = $startcol2 + RegionPeer::NUM_COLUMNS; ReligionPeer::addSelectColumns($c); $startcol4 = $startcol3 + ReligionPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol5 = $startcol4 + AcademicCalendarPeer::NUM_COLUMNS; $c->addJoin(TestApplicantDetailPeer::REGION_ID, RegionPeer::ID); $c->addJoin(TestApplicantDetailPeer::RELIGION_ID, ReligionPeer::ID); $c->addJoin(TestApplicantDetailPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = TestApplicantDetailPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = RegionPeer::getOMClass(); $cls = Propel::import($omClass); $obj2 = new $cls(); $obj2->hydrate($rs, $startcol2); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj2 = $temp_obj1->getRegion(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addTestApplicantDetail($obj1); break; } } if ($newObject) { $obj2->initTestApplicantDetails(); $obj2->addTestApplicantDetail($obj1); } $omClass = ReligionPeer::getOMClass(); $cls = Propel::import($omClass); $obj3 = new $cls(); $obj3->hydrate($rs, $startcol3); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj3 = $temp_obj1->getReligion(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addTestApplicantDetail($obj1); break; } } if ($newObject) { $obj3->initTestApplicantDetails(); $obj3->addTestApplicantDetail($obj1); } $omClass = AcademicCalendarPeer::getOMClass(); $cls = Propel::import($omClass); $obj4 = new $cls(); $obj4->hydrate($rs, $startcol4); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj4 = $temp_obj1->getAcademicCalendar(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addTestApplicantDetail($obj1); break; } } if ($newObject) { $obj4->initTestApplicantDetails(); $obj4->addTestApplicantDetail($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptClassGroupRelatedByClassId(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VApplicantTestPeer::addSelectColumns($c); $startcol2 = VApplicantTestPeer::NUM_COLUMNS - VApplicantTestPeer::NUM_LAZY_LOAD_COLUMNS + 1; TestApplicantDetailPeer::addSelectColumns($c); $startcol3 = $startcol2 + TestApplicantDetailPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol4 = $startcol3 + DepartmentPeer::NUM_COLUMNS; RegTestPeriodPeer::addSelectColumns($c); $startcol5 = $startcol4 + RegTestPeriodPeer::NUM_COLUMNS; LocationPeer::addSelectColumns($c); $startcol6 = $startcol5 + LocationPeer::NUM_COLUMNS; $c->addJoin(VApplicantTestPeer::TEST_APPLICANT_DETAIL_ID, TestApplicantDetailPeer::ID); $c->addJoin(VApplicantTestPeer::DEPARTMENT_ID, DepartmentPeer::ID); $c->addJoin(VApplicantTestPeer::REG_TEST_PERIOD_ID, RegTestPeriodPeer::ID); $c->addJoin(VApplicantTestPeer::LOCATION_ID, LocationPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VApplicantTestPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = TestApplicantDetailPeer::getOMClass(); $cls = Propel::import($omClass); $obj2 = new $cls(); $obj2->hydrate($rs, $startcol2); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj2 = $temp_obj1->getTestApplicantDetail(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVApplicantTest($obj1); break; } } if ($newObject) { $obj2->initVApplicantTests(); $obj2->addVApplicantTest($obj1); } $omClass = DepartmentPeer::getOMClass(); $cls = Propel::import($omClass); $obj3 = new $cls(); $obj3->hydrate($rs, $startcol3); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj3 = $temp_obj1->getDepartment(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addVApplicantTest($obj1); break; } } if ($newObject) { $obj3->initVApplicantTests(); $obj3->addVApplicantTest($obj1); } $omClass = RegTestPeriodPeer::getOMClass(); $cls = Propel::import($omClass); $obj4 = new $cls(); $obj4->hydrate($rs, $startcol4); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj4 = $temp_obj1->getRegTestPeriod(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addVApplicantTest($obj1); break; } } if ($newObject) { $obj4->initVApplicantTests(); $obj4->addVApplicantTest($obj1); } $omClass = LocationPeer::getOMClass(); $cls = Propel::import($omClass); $obj5 = new $cls(); $obj5->hydrate($rs, $startcol5); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj5 = $temp_obj1->getLocation(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addVApplicantTest($obj1); break; } } if ($newObject) { $obj5->initVApplicantTests(); $obj5->addVApplicantTest($obj1); } $results[] = $obj1; } return $results; }