public static function doSelectJoinAllExceptNgRegTestPeriod(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } NgTestSchedulePeer::addSelectColumns($c); $startcol2 = NgTestSchedulePeer::NUM_COLUMNS - NgTestSchedulePeer::NUM_LAZY_LOAD_COLUMNS + 1; LocationPeer::addSelectColumns($c); $startcol3 = $startcol2 + LocationPeer::NUM_COLUMNS; $c->addJoin(NgTestSchedulePeer::LOCATION_ID, LocationPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = NgTestSchedulePeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = LocationPeer::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->getLocation(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addNgTestSchedule($obj1); break; } } if ($newObject) { $obj2->initNgTestSchedules(); $obj2->addNgTestSchedule($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptAcademicCalendar(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } LocationPeer::addSelectColumns($c); $startcol2 = LocationPeer::NUM_COLUMNS - LocationPeer::NUM_LAZY_LOAD_COLUMNS + 1; LocationCategoryPeer::addSelectColumns($c); $startcol3 = $startcol2 + LocationCategoryPeer::NUM_COLUMNS; LocationConditionPeer::addSelectColumns($c); $startcol4 = $startcol3 + LocationConditionPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol5 = $startcol4 + DepartmentPeer::NUM_COLUMNS; $c->addJoin(LocationPeer::LOCATION_CATEGORY_ID, LocationCategoryPeer::ID); $c->addJoin(LocationPeer::LOCATION_CONDITION_ID, LocationConditionPeer::ID); $c->addJoin(LocationPeer::DEPARTMENT_ID, DepartmentPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = LocationPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = LocationCategoryPeer::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->getLocationCategory(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addLocation($obj1); break; } } if ($newObject) { $obj2->initLocations(); $obj2->addLocation($obj1); } $omClass = LocationConditionPeer::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->getLocationCondition(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addLocation($obj1); break; } } if ($newObject) { $obj3->initLocations(); $obj3->addLocation($obj1); } $omClass = DepartmentPeer::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->getDepartment(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addLocation($obj1); break; } } if ($newObject) { $obj4->initLocations(); $obj4->addLocation($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptGradeComponent(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } SchedulePeer::addSelectColumns($c); $startcol2 = SchedulePeer::NUM_COLUMNS - SchedulePeer::NUM_LAZY_LOAD_COLUMNS + 1; SubjectCurrPeer::addSelectColumns($c); $startcol3 = $startcol2 + SubjectCurrPeer::NUM_COLUMNS; EmployeePeer::addSelectColumns($c); $startcol4 = $startcol3 + EmployeePeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol5 = $startcol4 + ClassGroupPeer::NUM_COLUMNS; LocationPeer::addSelectColumns($c); $startcol6 = $startcol5 + LocationPeer::NUM_COLUMNS; ClassSessionPeer::addSelectColumns($c); $startcol7 = $startcol6 + ClassSessionPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol8 = $startcol7 + AcademicCalendarPeer::NUM_COLUMNS; GradeSpecPeer::addSelectColumns($c); $startcol9 = $startcol8 + GradeSpecPeer::NUM_COLUMNS; $c->addJoin(SchedulePeer::SUBJECT_CURR_ID, SubjectCurrPeer::ID); $c->addJoin(SchedulePeer::EMPLOYEE_ID, EmployeePeer::ID); $c->addJoin(SchedulePeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $c->addJoin(SchedulePeer::LOCATION_ID, LocationPeer::ID); $c->addJoin(SchedulePeer::CLASS_SESSION_ID, ClassSessionPeer::ID); $c->addJoin(SchedulePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(SchedulePeer::GRADE_SPEC_ID, GradeSpecPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = SchedulePeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = SubjectCurrPeer::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->getSubjectCurr(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addSchedule($obj1); break; } } if ($newObject) { $obj2->initSchedules(); $obj2->addSchedule($obj1); } $omClass = EmployeePeer::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->getEmployee(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addSchedule($obj1); break; } } if ($newObject) { $obj3->initSchedules(); $obj3->addSchedule($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->getClassGroup(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addSchedule($obj1); break; } } if ($newObject) { $obj4->initSchedules(); $obj4->addSchedule($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->addSchedule($obj1); break; } } if ($newObject) { $obj5->initSchedules(); $obj5->addSchedule($obj1); } $omClass = ClassSessionPeer::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->getClassSession(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addSchedule($obj1); break; } } if ($newObject) { $obj6->initSchedules(); $obj6->addSchedule($obj1); } $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj7->getPrimaryKey() === $obj7->getPrimaryKey()) { $newObject = false; $temp_obj7->addSchedule($obj1); break; } } if ($newObject) { $obj7->initSchedules(); $obj7->addSchedule($obj1); } $omClass = GradeSpecPeer::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->getGradeSpec(); if ($temp_obj8->getPrimaryKey() === $obj8->getPrimaryKey()) { $newObject = false; $temp_obj8->addSchedule($obj1); break; } } if ($newObject) { $obj8->initSchedules(); $obj8->addSchedule($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptRegTestPeriodRelatedByRegTestPeriod2(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; LocationPeer::addSelectColumns($c); $startcol6 = $startcol5 + LocationPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol7 = $startcol6 + DepartmentPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol8 = $startcol7 + ClassGroupPeer::NUM_COLUMNS; LocationPeer::addSelectColumns($c); $startcol9 = $startcol8 + LocationPeer::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::LOCATION1, LocationPeer::ID); $c->addJoin(TestApplicantPeer::DEPARTMENT_2, DepartmentPeer::ID); $c->addJoin(TestApplicantPeer::CLASS_GROUP2, ClassGroupPeer::ID); $c->addJoin(TestApplicantPeer::LOCATION2, LocationPeer::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 = 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->getLocationRelatedByLocation1(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addTestApplicantRelatedByLocation1($obj1); break; } } if ($newObject) { $obj5->initTestApplicantsRelatedByLocation1(); $obj5->addTestApplicantRelatedByLocation1($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 = LocationPeer::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->getLocationRelatedByLocation2(); if ($temp_obj8->getPrimaryKey() === $obj8->getPrimaryKey()) { $newObject = false; $temp_obj8->addTestApplicantRelatedByLocation2($obj1); break; } } if ($newObject) { $obj8->initTestApplicantsRelatedByLocation2(); $obj8->addTestApplicantRelatedByLocation2($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptTestSchedule(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VTestApplSchedPeer::addSelectColumns($c); $startcol2 = VTestApplSchedPeer::NUM_COLUMNS - VTestApplSchedPeer::NUM_LAZY_LOAD_COLUMNS + 1; TestApplicantPeer::addSelectColumns($c); $startcol3 = $startcol2 + TestApplicantPeer::NUM_COLUMNS; LocationPeer::addSelectColumns($c); $startcol4 = $startcol3 + LocationPeer::NUM_COLUMNS; LocationPeer::addSelectColumns($c); $startcol5 = $startcol4 + LocationPeer::NUM_COLUMNS; $c->addJoin(VTestApplSchedPeer::TEST_APPLICANT_ID, TestApplicantPeer::ID); $c->addJoin(VTestApplSchedPeer::LOCATION1, LocationPeer::ID); $c->addJoin(VTestApplSchedPeer::LOCATION2, LocationPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VTestApplSchedPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = TestApplicantPeer::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->getTestApplicant(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVTestApplSched($obj1); break; } } if ($newObject) { $obj2->initVTestApplScheds(); $obj2->addVTestApplSched($obj1); } $omClass = LocationPeer::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->getLocationRelatedByLocation1(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addVTestApplSchedRelatedByLocation1($obj1); break; } } if ($newObject) { $obj3->initVTestApplSchedsRelatedByLocation1(); $obj3->addVTestApplSchedRelatedByLocation1($obj1); } $omClass = LocationPeer::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->getLocationRelatedByLocation2(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addVTestApplSchedRelatedByLocation2($obj1); break; } } if ($newObject) { $obj4->initVTestApplSchedsRelatedByLocation2(); $obj4->addVTestApplSchedRelatedByLocation2($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; }
public static function doSelectJoinAllExceptAcademicCalendar(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } OutclassCounselingPeer::addSelectColumns($c); $startcol2 = OutclassCounselingPeer::NUM_COLUMNS - OutclassCounselingPeer::NUM_LAZY_LOAD_COLUMNS + 1; EmployeePeer::addSelectColumns($c); $startcol3 = $startcol2 + EmployeePeer::NUM_COLUMNS; StudentPeer::addSelectColumns($c); $startcol4 = $startcol3 + StudentPeer::NUM_COLUMNS; LocationPeer::addSelectColumns($c); $startcol5 = $startcol4 + LocationPeer::NUM_COLUMNS; StudentPeer::addSelectColumns($c); $startcol6 = $startcol5 + StudentPeer::NUM_COLUMNS; CounselingStatusPeer::addSelectColumns($c); $startcol7 = $startcol6 + CounselingStatusPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol8 = $startcol7 + ClassGroupPeer::NUM_COLUMNS; $c->addJoin(OutclassCounselingPeer::EMPLOYEE_ID, EmployeePeer::ID); $c->addJoin(OutclassCounselingPeer::STUDENT_INFORMER, StudentPeer::ID); $c->addJoin(OutclassCounselingPeer::LOCATION_ID, LocationPeer::ID); $c->addJoin(OutclassCounselingPeer::STUDENT_ID, StudentPeer::ID); $c->addJoin(OutclassCounselingPeer::COUNSELING_STATUS_ID, CounselingStatusPeer::ID); $c->addJoin(OutclassCounselingPeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = OutclassCounselingPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = EmployeePeer::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->getEmployee(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addOutclassCounseling($obj1); break; } } if ($newObject) { $obj2->initOutclassCounselings(); $obj2->addOutclassCounseling($obj1); } $omClass = StudentPeer::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->getStudentRelatedByStudentInformer(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addOutclassCounselingRelatedByStudentInformer($obj1); break; } } if ($newObject) { $obj3->initOutclassCounselingsRelatedByStudentInformer(); $obj3->addOutclassCounselingRelatedByStudentInformer($obj1); } $omClass = LocationPeer::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->getLocation(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addOutclassCounseling($obj1); break; } } if ($newObject) { $obj4->initOutclassCounselings(); $obj4->addOutclassCounseling($obj1); } $omClass = StudentPeer::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->getStudentRelatedByStudentId(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addOutclassCounselingRelatedByStudentId($obj1); break; } } if ($newObject) { $obj5->initOutclassCounselingsRelatedByStudentId(); $obj5->addOutclassCounselingRelatedByStudentId($obj1); } $omClass = CounselingStatusPeer::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->getCounselingStatus(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addOutclassCounseling($obj1); break; } } if ($newObject) { $obj6->initOutclassCounselings(); $obj6->addOutclassCounseling($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->getClassGroup(); if ($temp_obj7->getPrimaryKey() === $obj7->getPrimaryKey()) { $newObject = false; $temp_obj7->addOutclassCounseling($obj1); break; } } if ($newObject) { $obj7->initOutclassCounselings(); $obj7->addOutclassCounseling($obj1); } $results[] = $obj1; } return $results; }