PATCH: using standard way to refer to classes Group and PermissionRoleCode

This commit is contained in:
Nicolaas 2020-07-14 07:50:05 +12:00 committed by GitHub
parent fbe0f5a981
commit 65e0233258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,11 +31,11 @@ class PermissionRole extends DataObject
];
private static $has_many = [
"Codes" => "SilverStripe\\Security\\PermissionRoleCode",
"Codes" => PermissionRoleCode::class,
];
private static $belongs_many_many = [
"Groups" => "SilverStripe\\Security\\Group",
"Groups" => Group::class,
];
private static $table_name = "PermissionRole";