public static function doSelectJoinAllExceptBankAccount(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VAcademicCostTaPeer::addSelectColumns($c); $startcol2 = VAcademicCostTaPeer::NUM_COLUMNS - VAcademicCostTaPeer::NUM_LAZY_LOAD_COLUMNS + 1; AcademicCalendarPeer::addSelectColumns($c); $startcol3 = $startcol2 + AcademicCalendarPeer::NUM_COLUMNS; AcademicCostComponentPeer::addSelectColumns($c); $startcol4 = $startcol3 + AcademicCostComponentPeer::NUM_COLUMNS; AcademicProcessPeer::addSelectColumns($c); $startcol5 = $startcol4 + AcademicProcessPeer::NUM_COLUMNS; $c->addJoin(VAcademicCostTaPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(VAcademicCostTaPeer::ACADEMIC_COST_COMPONENT_ID, AcademicCostComponentPeer::ID); $c->addJoin(VAcademicCostTaPeer::ACADEMIC_PROCESS_ID, AcademicProcessPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VAcademicCostTaPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVAcademicCostTa($obj1); break; } } if ($newObject) { $obj2->initVAcademicCostTas(); $obj2->addVAcademicCostTa($obj1); } $omClass = AcademicCostComponentPeer::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->getAcademicCostComponent(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addVAcademicCostTa($obj1); break; } } if ($newObject) { $obj3->initVAcademicCostTas(); $obj3->addVAcademicCostTa($obj1); } $omClass = AcademicProcessPeer::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->getAcademicProcess(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addVAcademicCostTa($obj1); break; } } if ($newObject) { $obj4->initVAcademicCostTas(); $obj4->addVAcademicCostTa($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptDepartment(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; AcademicCalendarPeer::addSelectColumns($c); $startcol5 = $startcol4 + AcademicCalendarPeer::NUM_COLUMNS; $c->addJoin(LocationPeer::LOCATION_CATEGORY_ID, LocationCategoryPeer::ID); $c->addJoin(LocationPeer::LOCATION_CONDITION_ID, LocationConditionPeer::ID); $c->addJoin(LocationPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::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 = 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->addLocation($obj1); break; } } if ($newObject) { $obj4->initLocations(); $obj4->addLocation($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptMonth(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } AccalPeriodPeer::addSelectColumns($c); $startcol2 = AccalPeriodPeer::NUM_COLUMNS - AccalPeriodPeer::NUM_LAZY_LOAD_COLUMNS + 1; AcademicCalendarPeer::addSelectColumns($c); $startcol3 = $startcol2 + AcademicCalendarPeer::NUM_COLUMNS; $c->addJoin(AccalPeriodPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = AccalPeriodPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addAccalPeriod($obj1); break; } } if ($newObject) { $obj2->initAccalPeriods(); $obj2->addAccalPeriod($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptClassGroup(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VStudentCoursePeer::addSelectColumns($c); $startcol2 = VStudentCoursePeer::NUM_COLUMNS - VStudentCoursePeer::NUM_LAZY_LOAD_COLUMNS + 1; StudentPeer::addSelectColumns($c); $startcol3 = $startcol2 + StudentPeer::NUM_COLUMNS; SubjectAccalPeer::addSelectColumns($c); $startcol4 = $startcol3 + SubjectAccalPeer::NUM_COLUMNS; SubjectCurrPeer::addSelectColumns($c); $startcol5 = $startcol4 + SubjectCurrPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol6 = $startcol5 + AcademicCalendarPeer::NUM_COLUMNS; $c->addJoin(VStudentCoursePeer::STUDENT_ID, StudentPeer::ID); $c->addJoin(VStudentCoursePeer::SUBJECT_ACCAL_ID, SubjectAccalPeer::ID); $c->addJoin(VStudentCoursePeer::SUBJECT_CURR_ID, SubjectCurrPeer::ID); $c->addJoin(VStudentCoursePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VStudentCoursePeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = StudentPeer::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->getStudent(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVStudentCourse($obj1); break; } } if ($newObject) { $obj2->initVStudentCourses(); $obj2->addVStudentCourse($obj1); } $omClass = SubjectAccalPeer::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->getSubjectAccal(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addVStudentCourse($obj1); break; } } if ($newObject) { $obj3->initVStudentCourses(); $obj3->addVStudentCourse($obj1); } $omClass = SubjectCurrPeer::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->getSubjectCurr(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addVStudentCourse($obj1); break; } } if ($newObject) { $obj4->initVStudentCourses(); $obj4->addVStudentCourse($obj1); } $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addVStudentCourse($obj1); break; } } if ($newObject) { $obj5->initVStudentCourses(); $obj5->addVStudentCourse($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptClassType(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } CounselingPeer::addSelectColumns($c); $startcol2 = CounselingPeer::NUM_COLUMNS - CounselingPeer::NUM_LAZY_LOAD_COLUMNS + 1; EmployeePeer::addSelectColumns($c); $startcol3 = $startcol2 + EmployeePeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol4 = $startcol3 + AcademicCalendarPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol5 = $startcol4 + ClassGroupPeer::NUM_COLUMNS; $c->addJoin(CounselingPeer::EMPLOYEE_ID, EmployeePeer::ID); $c->addJoin(CounselingPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(CounselingPeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = CounselingPeer::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->addCounseling($obj1); break; } } if ($newObject) { $obj2->initCounselings(); $obj2->addCounseling($obj1); } $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addCounseling($obj1); break; } } if ($newObject) { $obj3->initCounselings(); $obj3->addCounseling($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->addCounseling($obj1); break; } } if ($newObject) { $obj4->initCounselings(); $obj4->addCounseling($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptEmployee(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } AbsenceEkskulPeer::addSelectColumns($c); $startcol2 = AbsenceEkskulPeer::NUM_COLUMNS - AbsenceEkskulPeer::NUM_LAZY_LOAD_COLUMNS + 1; StudentPeer::addSelectColumns($c); $startcol3 = $startcol2 + StudentPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol4 = $startcol3 + AcademicCalendarPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol5 = $startcol4 + ClassGroupPeer::NUM_COLUMNS; SchedulePeer::addSelectColumns($c); $startcol6 = $startcol5 + SchedulePeer::NUM_COLUMNS; ScheduleDetailPeer::addSelectColumns($c); $startcol7 = $startcol6 + ScheduleDetailPeer::NUM_COLUMNS; GradeComponentPeer::addSelectColumns($c); $startcol8 = $startcol7 + GradeComponentPeer::NUM_COLUMNS; $c->addJoin(AbsenceEkskulPeer::STUDENT_ID, StudentPeer::ID); $c->addJoin(AbsenceEkskulPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(AbsenceEkskulPeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $c->addJoin(AbsenceEkskulPeer::SCHEDULE_ID, SchedulePeer::ID); $c->addJoin(AbsenceEkskulPeer::SCHEDULE_DETAIL_ID, ScheduleDetailPeer::ID); $c->addJoin(AbsenceEkskulPeer::GRADE_COMPONENT_ID, GradeComponentPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = AbsenceEkskulPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = StudentPeer::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->getStudent(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addAbsenceEkskul($obj1); break; } } if ($newObject) { $obj2->initAbsenceEkskuls(); $obj2->addAbsenceEkskul($obj1); } $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addAbsenceEkskul($obj1); break; } } if ($newObject) { $obj3->initAbsenceEkskuls(); $obj3->addAbsenceEkskul($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->addAbsenceEkskul($obj1); break; } } if ($newObject) { $obj4->initAbsenceEkskuls(); $obj4->addAbsenceEkskul($obj1); } $omClass = SchedulePeer::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->getSchedule(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addAbsenceEkskul($obj1); break; } } if ($newObject) { $obj5->initAbsenceEkskuls(); $obj5->addAbsenceEkskul($obj1); } $omClass = ScheduleDetailPeer::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->getScheduleDetail(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addAbsenceEkskul($obj1); break; } } if ($newObject) { $obj6->initAbsenceEkskuls(); $obj6->addAbsenceEkskul($obj1); } $omClass = GradeComponentPeer::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->getGradeComponent(); if ($temp_obj7->getPrimaryKey() === $obj7->getPrimaryKey()) { $newObject = false; $temp_obj7->addAbsenceEkskul($obj1); break; } } if ($newObject) { $obj7->initAbsenceEkskuls(); $obj7->addAbsenceEkskul($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptDepartment(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VAcademicCalendarPeer::addSelectColumns($c); $startcol2 = VAcademicCalendarPeer::NUM_COLUMNS - VAcademicCalendarPeer::NUM_LAZY_LOAD_COLUMNS + 1; AcademicCalendarPeer::addSelectColumns($c); $startcol3 = $startcol2 + AcademicCalendarPeer::NUM_COLUMNS; CurriculumPeer::addSelectColumns($c); $startcol4 = $startcol3 + CurriculumPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol5 = $startcol4 + ClassGroupPeer::NUM_COLUMNS; CurrSystemPeer::addSelectColumns($c); $startcol6 = $startcol5 + CurrSystemPeer::NUM_COLUMNS; $c->addJoin(VAcademicCalendarPeer::PARENT, AcademicCalendarPeer::ID); $c->addJoin(VAcademicCalendarPeer::CURRICULUM_ID, CurriculumPeer::ID); $c->addJoin(VAcademicCalendarPeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $c->addJoin(VAcademicCalendarPeer::CURR_SYSTEM_ID, CurrSystemPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VAcademicCalendarPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVAcademicCalendar($obj1); break; } } if ($newObject) { $obj2->initVAcademicCalendars(); $obj2->addVAcademicCalendar($obj1); } $omClass = CurriculumPeer::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->getCurriculum(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addVAcademicCalendar($obj1); break; } } if ($newObject) { $obj3->initVAcademicCalendars(); $obj3->addVAcademicCalendar($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->addVAcademicCalendar($obj1); break; } } if ($newObject) { $obj4->initVAcademicCalendars(); $obj4->addVAcademicCalendar($obj1); } $omClass = CurrSystemPeer::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->getCurrSystem(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addVAcademicCalendar($obj1); break; } } if ($newObject) { $obj5->initVAcademicCalendars(); $obj5->addVAcademicCalendar($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 doSelectJoinAllExceptStudentDetail(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VMemberStudentPeer::addSelectColumns($c); $startcol2 = VMemberStudentPeer::NUM_COLUMNS - VMemberStudentPeer::NUM_LAZY_LOAD_COLUMNS + 1; MemberDetailPeer::addSelectColumns($c); $startcol3 = $startcol2 + MemberDetailPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol4 = $startcol3 + DepartmentPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol5 = $startcol4 + AcademicCalendarPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol6 = $startcol5 + ClassGroupPeer::NUM_COLUMNS; StudentPeer::addSelectColumns($c); $startcol7 = $startcol6 + StudentPeer::NUM_COLUMNS; $c->addJoin(VMemberStudentPeer::MEMBER_DETAIL_ID, MemberDetailPeer::ID); $c->addJoin(VMemberStudentPeer::DEPARTMENT_ID, DepartmentPeer::ID); $c->addJoin(VMemberStudentPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(VMemberStudentPeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $c->addJoin(VMemberStudentPeer::STUDENT_ID, StudentPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VMemberStudentPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = MemberDetailPeer::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->getMemberDetail(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVMemberStudent($obj1); break; } } if ($newObject) { $obj2->initVMemberStudents(); $obj2->addVMemberStudent($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->addVMemberStudent($obj1); break; } } if ($newObject) { $obj3->initVMemberStudents(); $obj3->addVMemberStudent($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->addVMemberStudent($obj1); break; } } if ($newObject) { $obj4->initVMemberStudents(); $obj4->addVMemberStudent($obj1); } $omClass = ClassGroupPeer::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->getClassGroup(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addVMemberStudent($obj1); break; } } if ($newObject) { $obj5->initVMemberStudents(); $obj5->addVMemberStudent($obj1); } $omClass = StudentPeer::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->getStudent(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addVMemberStudent($obj1); break; } } if ($newObject) { $obj6->initVMemberStudents(); $obj6->addVMemberStudent($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 doSelectJoinAllExceptLeaveType(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } EmployeeLeavePeer::addSelectColumns($c); $startcol2 = EmployeeLeavePeer::NUM_COLUMNS - EmployeeLeavePeer::NUM_LAZY_LOAD_COLUMNS + 1; EmployeePeer::addSelectColumns($c); $startcol3 = $startcol2 + EmployeePeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol4 = $startcol3 + DepartmentPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol5 = $startcol4 + AcademicCalendarPeer::NUM_COLUMNS; EmployeeLevelPeer::addSelectColumns($c); $startcol6 = $startcol5 + EmployeeLevelPeer::NUM_COLUMNS; EmployeeDivisionPeer::addSelectColumns($c); $startcol7 = $startcol6 + EmployeeDivisionPeer::NUM_COLUMNS; $c->addJoin(EmployeeLeavePeer::EMPLOYEE_ID, EmployeePeer::ID); $c->addJoin(EmployeeLeavePeer::DEPARTMENT_ID, DepartmentPeer::ID); $c->addJoin(EmployeeLeavePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(EmployeeLeavePeer::EMPLOYEE_LEVEL_ID, EmployeeLevelPeer::ID); $c->addJoin(EmployeeLeavePeer::EMPLOYEE_DIVISION_ID, EmployeeDivisionPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = EmployeeLeavePeer::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->addEmployeeLeave($obj1); break; } } if ($newObject) { $obj2->initEmployeeLeaves(); $obj2->addEmployeeLeave($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->addEmployeeLeave($obj1); break; } } if ($newObject) { $obj3->initEmployeeLeaves(); $obj3->addEmployeeLeave($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->addEmployeeLeave($obj1); break; } } if ($newObject) { $obj4->initEmployeeLeaves(); $obj4->addEmployeeLeave($obj1); } $omClass = EmployeeLevelPeer::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->getEmployeeLevel(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addEmployeeLeave($obj1); break; } } if ($newObject) { $obj5->initEmployeeLeaves(); $obj5->addEmployeeLeave($obj1); } $omClass = EmployeeDivisionPeer::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->getEmployeeDivision(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addEmployeeLeave($obj1); break; } } if ($newObject) { $obj6->initEmployeeLeaves(); $obj6->addEmployeeLeave($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptScheduleDetail(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } StudentRaportPeer::addSelectColumns($c); $startcol2 = StudentRaportPeer::NUM_COLUMNS - StudentRaportPeer::NUM_LAZY_LOAD_COLUMNS + 1; StudentPeer::addSelectColumns($c); $startcol3 = $startcol2 + StudentPeer::NUM_COLUMNS; StudentCoursePeer::addSelectColumns($c); $startcol4 = $startcol3 + StudentCoursePeer::NUM_COLUMNS; GradeComponentPeer::addSelectColumns($c); $startcol5 = $startcol4 + GradeComponentPeer::NUM_COLUMNS; GradeSpecPeer::addSelectColumns($c); $startcol6 = $startcol5 + GradeSpecPeer::NUM_COLUMNS; CitationPeer::addSelectColumns($c); $startcol7 = $startcol6 + CitationPeer::NUM_COLUMNS; SubjectCurrPeer::addSelectColumns($c); $startcol8 = $startcol7 + SubjectCurrPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol9 = $startcol8 + ClassGroupPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol10 = $startcol9 + AcademicCalendarPeer::NUM_COLUMNS; SchedulePeer::addSelectColumns($c); $startcol11 = $startcol10 + SchedulePeer::NUM_COLUMNS; $c->addJoin(StudentRaportPeer::STUDENT_ID, StudentPeer::ID); $c->addJoin(StudentRaportPeer::STUDENT_COURSE_ID, StudentCoursePeer::ID); $c->addJoin(StudentRaportPeer::GRADE_COMPONENT_ID, GradeComponentPeer::ID); $c->addJoin(StudentRaportPeer::GRADE_SPEC_ID, GradeSpecPeer::ID); $c->addJoin(StudentRaportPeer::CITATION_ID, CitationPeer::ID); $c->addJoin(StudentRaportPeer::SUBJECT_CURR_ID, SubjectCurrPeer::ID); $c->addJoin(StudentRaportPeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $c->addJoin(StudentRaportPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(StudentRaportPeer::SCHEDULE_ID, SchedulePeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = StudentRaportPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = StudentPeer::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->getStudent(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addStudentRaport($obj1); break; } } if ($newObject) { $obj2->initStudentRaports(); $obj2->addStudentRaport($obj1); } $omClass = StudentCoursePeer::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->getStudentCourse(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addStudentRaport($obj1); break; } } if ($newObject) { $obj3->initStudentRaports(); $obj3->addStudentRaport($obj1); } $omClass = GradeComponentPeer::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->getGradeComponent(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addStudentRaport($obj1); break; } } if ($newObject) { $obj4->initStudentRaports(); $obj4->addStudentRaport($obj1); } $omClass = GradeSpecPeer::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->getGradeSpec(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addStudentRaport($obj1); break; } } if ($newObject) { $obj5->initStudentRaports(); $obj5->addStudentRaport($obj1); } $omClass = CitationPeer::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->getCitation(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addStudentRaport($obj1); break; } } if ($newObject) { $obj6->initStudentRaports(); $obj6->addStudentRaport($obj1); } $omClass = SubjectCurrPeer::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->getSubjectCurr(); if ($temp_obj7->getPrimaryKey() === $obj7->getPrimaryKey()) { $newObject = false; $temp_obj7->addStudentRaport($obj1); break; } } if ($newObject) { $obj7->initStudentRaports(); $obj7->addStudentRaport($obj1); } $omClass = ClassGroupPeer::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->getClassGroup(); if ($temp_obj8->getPrimaryKey() === $obj8->getPrimaryKey()) { $newObject = false; $temp_obj8->addStudentRaport($obj1); break; } } if ($newObject) { $obj8->initStudentRaports(); $obj8->addStudentRaport($obj1); } $omClass = AcademicCalendarPeer::getOMClass(); $cls = Propel::import($omClass); $obj9 = new $cls(); $obj9->hydrate($rs, $startcol9); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj9 = $temp_obj1->getAcademicCalendar(); if ($temp_obj9->getPrimaryKey() === $obj9->getPrimaryKey()) { $newObject = false; $temp_obj9->addStudentRaport($obj1); break; } } if ($newObject) { $obj9->initStudentRaports(); $obj9->addStudentRaport($obj1); } $omClass = SchedulePeer::getOMClass(); $cls = Propel::import($omClass); $obj10 = new $cls(); $obj10->hydrate($rs, $startcol10); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj10 = $temp_obj1->getSchedule(); if ($temp_obj10->getPrimaryKey() === $obj10->getPrimaryKey()) { $newObject = false; $temp_obj10->addStudentRaport($obj1); break; } } if ($newObject) { $obj10->initStudentRaports(); $obj10->addStudentRaport($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptAcademicCostComponent(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VSppPeer::addSelectColumns($c); $startcol2 = VSppPeer::NUM_COLUMNS - VSppPeer::NUM_LAZY_LOAD_COLUMNS + 1; StudentPeer::addSelectColumns($c); $startcol3 = $startcol2 + StudentPeer::NUM_COLUMNS; AcademicCostPeer::addSelectColumns($c); $startcol4 = $startcol3 + AcademicCostPeer::NUM_COLUMNS; UserPeer::addSelectColumns($c); $startcol5 = $startcol4 + UserPeer::NUM_COLUMNS; AcademicProcessPeer::addSelectColumns($c); $startcol6 = $startcol5 + AcademicProcessPeer::NUM_COLUMNS; PaymentModelPeer::addSelectColumns($c); $startcol7 = $startcol6 + PaymentModelPeer::NUM_COLUMNS; TransactionStatusPeer::addSelectColumns($c); $startcol8 = $startcol7 + TransactionStatusPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol9 = $startcol8 + AcademicCalendarPeer::NUM_COLUMNS; $c->addJoin(VSppPeer::STUDENT_ID, StudentPeer::ID); $c->addJoin(VSppPeer::ACADEMIC_COST_ID, AcademicCostPeer::ID); $c->addJoin(VSppPeer::USER_ID, UserPeer::ID); $c->addJoin(VSppPeer::ACADEMIC_PROCESS_ID, AcademicProcessPeer::ID); $c->addJoin(VSppPeer::PAYMENT_MODEL_ID, PaymentModelPeer::ID); $c->addJoin(VSppPeer::TRANSACTION_STATUS_ID, TransactionStatusPeer::ID); $c->addJoin(VSppPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VSppPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = StudentPeer::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->getStudent(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVSpp($obj1); break; } } if ($newObject) { $obj2->initVSpps(); $obj2->addVSpp($obj1); } $omClass = AcademicCostPeer::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->getAcademicCost(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addVSpp($obj1); break; } } if ($newObject) { $obj3->initVSpps(); $obj3->addVSpp($obj1); } $omClass = UserPeer::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->getUser(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addVSpp($obj1); break; } } if ($newObject) { $obj4->initVSpps(); $obj4->addVSpp($obj1); } $omClass = AcademicProcessPeer::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->getAcademicProcess(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addVSpp($obj1); break; } } if ($newObject) { $obj5->initVSpps(); $obj5->addVSpp($obj1); } $omClass = PaymentModelPeer::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->getPaymentModel(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addVSpp($obj1); break; } } if ($newObject) { $obj6->initVSpps(); $obj6->addVSpp($obj1); } $omClass = TransactionStatusPeer::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->getTransactionStatus(); if ($temp_obj7->getPrimaryKey() === $obj7->getPrimaryKey()) { $newObject = false; $temp_obj7->addVSpp($obj1); break; } } if ($newObject) { $obj7->initVSpps(); $obj7->addVSpp($obj1); } $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj8->getPrimaryKey() === $obj8->getPrimaryKey()) { $newObject = false; $temp_obj8->addVSpp($obj1); break; } } if ($newObject) { $obj8->initVSpps(); $obj8->addVSpp($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptStudent(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } StudentTypePeer::addSelectColumns($c); $startcol2 = StudentTypePeer::NUM_COLUMNS - StudentTypePeer::NUM_LAZY_LOAD_COLUMNS + 1; AcademicCalendarPeer::addSelectColumns($c); $startcol3 = $startcol2 + AcademicCalendarPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol4 = $startcol3 + DepartmentPeer::NUM_COLUMNS; PayerTypePeer::addSelectColumns($c); $startcol5 = $startcol4 + PayerTypePeer::NUM_COLUMNS; $c->addJoin(StudentTypePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(StudentTypePeer::DEPARTMENT_ID, DepartmentPeer::ID); $c->addJoin(StudentTypePeer::PAYER_TYPE_ID, PayerTypePeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = StudentTypePeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = AcademicCalendarPeer::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->getAcademicCalendar(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addStudentType($obj1); break; } } if ($newObject) { $obj2->initStudentTypes(); $obj2->addStudentType($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->addStudentType($obj1); break; } } if ($newObject) { $obj3->initStudentTypes(); $obj3->addStudentType($obj1); } $omClass = PayerTypePeer::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->getPayerType(); if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) { $newObject = false; $temp_obj4->addStudentType($obj1); break; } } if ($newObject) { $obj4->initStudentTypes(); $obj4->addStudentType($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptClassGroup(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; AcademicCalendarPeer::addSelectColumns($c); $startcol8 = $startcol7 + AcademicCalendarPeer::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::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::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 = 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->addOutclassCounseling($obj1); break; } } if ($newObject) { $obj7->initOutclassCounselings(); $obj7->addOutclassCounseling($obj1); } $results[] = $obj1; } return $results; }
public static function doSelectJoinAllExceptStudentCourse(Criteria $c, $con = null) { $c = clone $c; if ($c->getDbName() == Propel::getDefaultDB()) { $c->setDbName(self::DATABASE_NAME); } VSubjectAccalLectorStudentDetailPeer::addSelectColumns($c); $startcol2 = VSubjectAccalLectorStudentDetailPeer::NUM_COLUMNS - VSubjectAccalLectorStudentDetailPeer::NUM_LAZY_LOAD_COLUMNS + 1; SubjectAccalPeer::addSelectColumns($c); $startcol3 = $startcol2 + SubjectAccalPeer::NUM_COLUMNS; ClassGroupPeer::addSelectColumns($c); $startcol4 = $startcol3 + ClassGroupPeer::NUM_COLUMNS; AcademicCalendarPeer::addSelectColumns($c); $startcol5 = $startcol4 + AcademicCalendarPeer::NUM_COLUMNS; SubjectPeer::addSelectColumns($c); $startcol6 = $startcol5 + SubjectPeer::NUM_COLUMNS; EmployeePeer::addSelectColumns($c); $startcol7 = $startcol6 + EmployeePeer::NUM_COLUMNS; CurriculumPeer::addSelectColumns($c); $startcol8 = $startcol7 + CurriculumPeer::NUM_COLUMNS; DepartmentPeer::addSelectColumns($c); $startcol9 = $startcol8 + DepartmentPeer::NUM_COLUMNS; StudentPeer::addSelectColumns($c); $startcol10 = $startcol9 + StudentPeer::NUM_COLUMNS; $c->addJoin(VSubjectAccalLectorStudentDetailPeer::SUBJECT_ACCAL_ID, SubjectAccalPeer::ID); $c->addJoin(VSubjectAccalLectorStudentDetailPeer::CLASS_GROUP_ID, ClassGroupPeer::ID); $c->addJoin(VSubjectAccalLectorStudentDetailPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID); $c->addJoin(VSubjectAccalLectorStudentDetailPeer::SUBJECT_ID, SubjectPeer::ID); $c->addJoin(VSubjectAccalLectorStudentDetailPeer::EMPLOYEE_ID, EmployeePeer::ID); $c->addJoin(VSubjectAccalLectorStudentDetailPeer::CURRICULUM_ID, CurriculumPeer::ID); $c->addJoin(VSubjectAccalLectorStudentDetailPeer::DEPARTMENT_ID, DepartmentPeer::ID); $c->addJoin(VSubjectAccalLectorStudentDetailPeer::STUDENT_ID, StudentPeer::ID); $rs = BasePeer::doSelect($c, $con); $results = array(); while ($rs->next()) { $omClass = VSubjectAccalLectorStudentDetailPeer::getOMClass(); $cls = Propel::import($omClass); $obj1 = new $cls(); $obj1->hydrate($rs); $omClass = SubjectAccalPeer::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->getSubjectAccal(); if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) { $newObject = false; $temp_obj2->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj2->initVSubjectAccalLectorStudentDetails(); $obj2->addVSubjectAccalLectorStudentDetail($obj1); } $omClass = ClassGroupPeer::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->getClassGroup(); if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) { $newObject = false; $temp_obj3->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj3->initVSubjectAccalLectorStudentDetails(); $obj3->addVSubjectAccalLectorStudentDetail($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->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj4->initVSubjectAccalLectorStudentDetails(); $obj4->addVSubjectAccalLectorStudentDetail($obj1); } $omClass = SubjectPeer::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->getSubject(); if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) { $newObject = false; $temp_obj5->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj5->initVSubjectAccalLectorStudentDetails(); $obj5->addVSubjectAccalLectorStudentDetail($obj1); } $omClass = EmployeePeer::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->getEmployee(); if ($temp_obj6->getPrimaryKey() === $obj6->getPrimaryKey()) { $newObject = false; $temp_obj6->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj6->initVSubjectAccalLectorStudentDetails(); $obj6->addVSubjectAccalLectorStudentDetail($obj1); } $omClass = CurriculumPeer::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->getCurriculum(); if ($temp_obj7->getPrimaryKey() === $obj7->getPrimaryKey()) { $newObject = false; $temp_obj7->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj7->initVSubjectAccalLectorStudentDetails(); $obj7->addVSubjectAccalLectorStudentDetail($obj1); } $omClass = DepartmentPeer::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->getDepartment(); if ($temp_obj8->getPrimaryKey() === $obj8->getPrimaryKey()) { $newObject = false; $temp_obj8->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj8->initVSubjectAccalLectorStudentDetails(); $obj8->addVSubjectAccalLectorStudentDetail($obj1); } $omClass = StudentPeer::getOMClass(); $cls = Propel::import($omClass); $obj9 = new $cls(); $obj9->hydrate($rs, $startcol9); $newObject = true; for ($j = 0, $resCount = count($results); $j < $resCount; $j++) { $temp_obj1 = $results[$j]; $temp_obj9 = $temp_obj1->getStudent(); if ($temp_obj9->getPrimaryKey() === $obj9->getPrimaryKey()) { $newObject = false; $temp_obj9->addVSubjectAccalLectorStudentDetail($obj1); break; } } if ($newObject) { $obj9->initVSubjectAccalLectorStudentDetails(); $obj9->addVSubjectAccalLectorStudentDetail($obj1); } $results[] = $obj1; } return $results; }