diff --git a/system/Model.php b/system/Model.php index 8f62ab84d367..68c176f99751 100644 --- a/system/Model.php +++ b/system/Model.php @@ -1436,7 +1436,7 @@ protected function trigger(string $event, array $data) */ public function __get(string $name) { - if (in_array($name, ['primaryKey', 'table', 'returnType'])) + if (in_array($name, ['primaryKey', 'table', 'returnType', 'DBGroup'])) { return $this->{$name}; }