* @copyright 2019 * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 * @category Stud.IP * * @property string semester_id The ID of a semester. * @property string course_id The ID of a course. * @property string mkdate The database entry's creation date. * @property string chdate The database entry's last modification date. * * @property Semester $semester * @property Course $course * * The combination of semester_id and course_id form the primary key. */ class SemesterCourse extends SimpleORMap { public static function configure($config = []) { $config['db_table'] = 'semester_courses'; $config['belongs_to']['semester'] = [ 'class_name' => Semester::class, 'foreign_key' => 'semester_id', ]; $config['belongs_to']['course'] = [ 'class_name' => Course::class, 'foreign_key' => 'course_id', ]; parent::configure($config); } }