本文整理汇总了PHP中StudentRaportPeer::retrieveByPK方法的典型用法代码示例。如果您正苦于以下问题:PHP StudentRaportPeer::retrieveByPK方法的具体用法?PHP StudentRaportPeer::retrieveByPK怎么用?PHP StudentRaportPeer::retrieveByPK使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StudentRaportPeer
的用法示例。
在下文中一共展示了StudentRaportPeer::retrieveByPK方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: executeSaveDevelopment
public function executeSaveDevelopment()
{
$student_id = $this->getRequestParameter('student_id');
$student = StudentPeer::retrieveByPK($student_id);
$this->forward404Unless($student);
$this->student = $student;
$course_id = $this->getRequestParameter('course_id');
$student_course = StudentCoursePeer::retrieveByPK($course_id);
$this->forward404Unless($student_course);
$this->student_course = $student_course;
$student_course->setStudentId($student->getId());
$student_course->setClassGroupId($student->getClassGroupId());
$student_course->setAcademicCalendarId($student->getAcademicCalendarId());
$student_course->setGradeComponentId($this->getRequestParameter('grade_component_id'));
$student_course->save();
$raport_id = $this->getRequestParameter('raport_id');
$student_raport = StudentRaportPeer::retrieveByPK($raport_id);
$this->forward404Unless($student_raport);
$this->student_raport = $student_raport;
$student_raport->setStudentCourse($student_course);
$student_raport->setGradeComponentId($this->getRequestParameter('grade_component_id'));
$student_raport->setGrade($this->getRequestParameter('grade'));
$student_raport->save();
return $this->redirect('student_score/listDev?student_id=' . $student->getId());
}