Example #1
0
 public function hasAttendancesPerSubject()
 {
     $c = new Criteria();
     $c->add(StudentAttendancePeer::STUDENT_ID, $this->id);
     $c->add(StudentAttendancePeer::VALUE, 0, Criteria::GREATER_THAN);
     $c->add(StudentAttendancePeer::COURSE_SUBJECT_ID, null, Criteria::ISNOTNULL);
     return 0 != count(parent::getStudentAttendances($c));
 }