Skip to content

Commit

Permalink
Merge pull request #1656 from nowackipawel/patch-21
Browse files Browse the repository at this point in the history
DBGroup  in __get(), allows to validate "database" data outside the model.
  • Loading branch information
lonnieezell authored Jan 10, 2019
2 parents 3003609 + 747f28e commit 6450c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down

0 comments on commit 6450c6f

Please sign in to comment.