public function getStudents() { $criteria = CoursePeer::retrieveStudentsCriteria($this->getId()); return StudentPeer::sorted($criteria); }