aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Course.class.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-06-14 12:47:13 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-06-14 12:47:13 +0000
commit00b4e32c6dcff8ca9b038c59b81e93b11737ac25 (patch)
tree4acbfdf5c4431b1555e4fdf5e679514144f385c9 /lib/models/Course.class.php
parentf345a34d0152960833fcee51e4834cf7ab2396f7 (diff)
add consultation routes
Closes #1149 Merge request studip/studip!686
Diffstat (limited to 'lib/models/Course.class.php')
-rw-r--r--lib/models/Course.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/models/Course.class.php b/lib/models/Course.class.php
index ba36ee9..10969a4 100644
--- a/lib/models/Course.class.php
+++ b/lib/models/Course.class.php
@@ -142,6 +142,11 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe
'on_delete' => 'delete',
'on_store' => 'store',
];
+ $config['has_many']['consultation_blocks'] = [
+ 'class_name' => ConsultationBlock::class,
+ 'assoc_foreign_key' => 'range_id',
+ 'on_delete' => 'delete',
+ ];
$config['has_and_belongs_to_many']['semesters'] = [
'class_name' => Semester::class,