本文整理汇总了PHP中AcademicCalendarPeer::addSelectColumns方法的典型用法代码示例。如果您正苦于以下问题:PHP AcademicCalendarPeer::addSelectColumns方法的具体用法?PHP AcademicCalendarPeer::addSelectColumns怎么用?PHP AcademicCalendarPeer::addSelectColumns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcademicCalendarPeer
的用法示例。
在下文中一共展示了AcademicCalendarPeer::addSelectColumns方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doSelectJoinAllExceptClassType
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;
}
示例2: doSelectJoinAllExceptDepartment
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;
}
示例3: doSelectJoinAllExceptDepartment
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;
//.........这里部分代码省略.........
示例4: doSelectJoinAllExceptClassGroup
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;
//.........这里部分代码省略.........
示例5: doSelectJoinAllExceptStudentDetail
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();
//.........这里部分代码省略.........
示例6: doSelectJoinAllExceptEmployee
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;
}
//.........这里部分代码省略.........
示例7: doSelectJoinAllExceptLeaveType
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();
//.........这里部分代码省略.........
示例8: doSelectJoinAllExceptClassGroup
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;
}
//.........这里部分代码省略.........
示例9: doSelectJoinAllExceptScheduleDetail
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);
//.........这里部分代码省略.........
示例10: doSelectJoinAllExceptGradeComponent
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;
//.........这里部分代码省略.........
示例11: getAcademicCalendarsRelatedByParent
public function getAcademicCalendarsRelatedByParent($criteria = null, $con = null)
{
include_once 'lib/model/om/BaseAcademicCalendarPeer.php';
if ($criteria === null) {
$criteria = new Criteria();
} elseif ($criteria instanceof Criteria) {
$criteria = clone $criteria;
}
if ($this->collAcademicCalendarsRelatedByParent === null) {
if ($this->isNew()) {
$this->collAcademicCalendarsRelatedByParent = array();
} else {
$criteria->add(AcademicCalendarPeer::PARENT, $this->getId());
AcademicCalendarPeer::addSelectColumns($criteria);
$this->collAcademicCalendarsRelatedByParent = AcademicCalendarPeer::doSelect($criteria, $con);
}
} else {
if (!$this->isNew()) {
$criteria->add(AcademicCalendarPeer::PARENT, $this->getId());
AcademicCalendarPeer::addSelectColumns($criteria);
if (!isset($this->lastAcademicCalendarRelatedByParentCriteria) || !$this->lastAcademicCalendarRelatedByParentCriteria->equals($criteria)) {
$this->collAcademicCalendarsRelatedByParent = AcademicCalendarPeer::doSelect($criteria, $con);
}
}
}
$this->lastAcademicCalendarRelatedByParentCriteria = $criteria;
return $this->collAcademicCalendarsRelatedByParent;
}
示例12: doSelectJoinAllExceptAcademicCostComponent
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;
//.........这里部分代码省略.........
示例13: doSelectJoinAllExceptStudent
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;
}
示例14: doSelectJoinAllExceptMonth
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;
}
示例15: doSelectJoinAllExceptCountry
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;
}