本文整理汇总了PHP中GradeSpecPeer::getOMClass方法的典型用法代码示例。如果您正苦于以下问题:PHP GradeSpecPeer::getOMClass方法的具体用法?PHP GradeSpecPeer::getOMClass怎么用?PHP GradeSpecPeer::getOMClass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GradeSpecPeer
的用法示例。
在下文中一共展示了GradeSpecPeer::getOMClass方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doSelectJoinAllExceptDepartment
public static function doSelectJoinAllExceptDepartment(Criteria $c, $con = null)
{
$c = clone $c;
if ($c->getDbName() == Propel::getDefaultDB()) {
$c->setDbName(self::DATABASE_NAME);
}
GradeComponentPeer::addSelectColumns($c);
$startcol2 = GradeComponentPeer::NUM_COLUMNS - GradeComponentPeer::NUM_LAZY_LOAD_COLUMNS + 1;
GradeSpecPeer::addSelectColumns($c);
$startcol3 = $startcol2 + GradeSpecPeer::NUM_COLUMNS;
$c->addJoin(GradeComponentPeer::GRADE_SPEC_ID, GradeSpecPeer::ID);
$rs = BasePeer::doSelect($c, $con);
$results = array();
while ($rs->next()) {
$omClass = GradeComponentPeer::getOMClass();
$cls = Propel::import($omClass);
$obj1 = new $cls();
$obj1->hydrate($rs);
$omClass = GradeSpecPeer::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->getGradeSpec();
if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) {
$newObject = false;
$temp_obj2->addGradeComponent($obj1);
break;
}
}
if ($newObject) {
$obj2->initGradeComponents();
$obj2->addGradeComponent($obj1);
}
$results[] = $obj1;
}
return $results;
}
示例2: 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;
//.........这里部分代码省略.........
示例3: 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);
//.........这里部分代码省略.........
示例4: doSelectJoinAllExceptAcademicCalendar
public static function doSelectJoinAllExceptAcademicCalendar(Criteria $c, $con = null)
{
$c = clone $c;
if ($c->getDbName() == Propel::getDefaultDB()) {
$c->setDbName(self::DATABASE_NAME);
}
VRaportPeer::addSelectColumns($c);
$startcol2 = VRaportPeer::NUM_COLUMNS - VRaportPeer::NUM_LAZY_LOAD_COLUMNS + 1;
StudentCoursePeer::addSelectColumns($c);
$startcol3 = $startcol2 + StudentCoursePeer::NUM_COLUMNS;
GradeComponentPeer::addSelectColumns($c);
$startcol4 = $startcol3 + GradeComponentPeer::NUM_COLUMNS;
GradeSpecPeer::addSelectColumns($c);
$startcol5 = $startcol4 + GradeSpecPeer::NUM_COLUMNS;
CitationPeer::addSelectColumns($c);
$startcol6 = $startcol5 + CitationPeer::NUM_COLUMNS;
SubjectPeer::addSelectColumns($c);
$startcol7 = $startcol6 + SubjectPeer::NUM_COLUMNS;
$c->addJoin(VRaportPeer::STUDENT_COURSE_ID, StudentCoursePeer::ID);
$c->addJoin(VRaportPeer::GRADE_COMPONENT_ID, GradeComponentPeer::ID);
$c->addJoin(VRaportPeer::GRADE_SPEC_ID, GradeSpecPeer::ID);
$c->addJoin(VRaportPeer::CITATION_ID, CitationPeer::ID);
$c->addJoin(VRaportPeer::SUBJECT_ID, SubjectPeer::ID);
$rs = BasePeer::doSelect($c, $con);
$results = array();
while ($rs->next()) {
$omClass = VRaportPeer::getOMClass();
$cls = Propel::import($omClass);
$obj1 = new $cls();
$obj1->hydrate($rs);
$omClass = StudentCoursePeer::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->getStudentCourse();
if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) {
$newObject = false;
$temp_obj2->addVRaport($obj1);
break;
}
}
if ($newObject) {
$obj2->initVRaports();
$obj2->addVRaport($obj1);
}
$omClass = GradeComponentPeer::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->getGradeComponent();
if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) {
$newObject = false;
$temp_obj3->addVRaport($obj1);
break;
}
}
if ($newObject) {
$obj3->initVRaports();
$obj3->addVRaport($obj1);
}
$omClass = GradeSpecPeer::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->getGradeSpec();
if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) {
$newObject = false;
$temp_obj4->addVRaport($obj1);
break;
}
}
if ($newObject) {
$obj4->initVRaports();
$obj4->addVRaport($obj1);
}
$omClass = CitationPeer::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->getCitation();
if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) {
$newObject = false;
$temp_obj5->addVRaport($obj1);
break;
}
}
if ($newObject) {
$obj5->initVRaports();
//.........这里部分代码省略.........
示例5: doSelectJoinAll
public static function doSelectJoinAll(Criteria $c, $con = null)
{
$c = clone $c;
if ($c->getDbName() == Propel::getDefaultDB()) {
$c->setDbName(self::DATABASE_NAME);
}
GradeSpecPeer::addSelectColumns($c);
$startcol2 = GradeSpecPeer::NUM_COLUMNS - GradeSpecPeer::NUM_LAZY_LOAD_COLUMNS + 1;
$rs = BasePeer::doSelect($c, $con);
$results = array();
while ($rs->next()) {
$omClass = GradeSpecPeer::getOMClass();
$cls = Propel::import($omClass);
$obj1 = new $cls();
$obj1->hydrate($rs);
$results[] = $obj1;
}
return $results;
}
示例6: doSelectJoinAllExceptSubjectCurr
public static function doSelectJoinAllExceptSubjectCurr(Criteria $c, $con = null)
{
$c = clone $c;
if ($c->getDbName() == Propel::getDefaultDB()) {
$c->setDbName(self::DATABASE_NAME);
}
StudentGradeRaportPeer::addSelectColumns($c);
$startcol2 = StudentGradeRaportPeer::NUM_COLUMNS - StudentGradeRaportPeer::NUM_LAZY_LOAD_COLUMNS + 1;
StudentAccalPeer::addSelectColumns($c);
$startcol3 = $startcol2 + StudentAccalPeer::NUM_COLUMNS;
CourseSchedulePeer::addSelectColumns($c);
$startcol4 = $startcol3 + CourseSchedulePeer::NUM_COLUMNS;
GradeSpecPeer::addSelectColumns($c);
$startcol5 = $startcol4 + GradeSpecPeer::NUM_COLUMNS;
$c->addJoin(StudentGradeRaportPeer::STUDENT_ACCAL_ID, StudentAccalPeer::ID);
$c->addJoin(StudentGradeRaportPeer::COURSE_SCHEDULE_ID, CourseSchedulePeer::ID);
$c->addJoin(StudentGradeRaportPeer::GRADE_SPEC_ID, GradeSpecPeer::ID);
$rs = BasePeer::doSelect($c, $con);
$results = array();
while ($rs->next()) {
$omClass = StudentGradeRaportPeer::getOMClass();
$cls = Propel::import($omClass);
$obj1 = new $cls();
$obj1->hydrate($rs);
$omClass = StudentAccalPeer::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->getStudentAccal();
if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) {
$newObject = false;
$temp_obj2->addStudentGradeRaport($obj1);
break;
}
}
if ($newObject) {
$obj2->initStudentGradeRaports();
$obj2->addStudentGradeRaport($obj1);
}
$omClass = CourseSchedulePeer::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->getCourseSchedule();
if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) {
$newObject = false;
$temp_obj3->addStudentGradeRaport($obj1);
break;
}
}
if ($newObject) {
$obj3->initStudentGradeRaports();
$obj3->addStudentGradeRaport($obj1);
}
$omClass = GradeSpecPeer::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->getGradeSpec();
if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) {
$newObject = false;
$temp_obj4->addStudentGradeRaport($obj1);
break;
}
}
if ($newObject) {
$obj4->initStudentGradeRaports();
$obj4->addStudentGradeRaport($obj1);
}
$results[] = $obj1;
}
return $results;
}