From f77a254ad6832b2431d4856582ddc9191be99e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenneth=20S=C3=B6derlund?= Date: Fri, 15 Jul 2016 12:15:05 +0300 Subject: [PATCH] Add Doctrine YAML mappings to Resources --- .../Crisu83.Overseer.Entity.Assignment.dcm.yml | 13 +++++++++++++ .../Crisu83.Overseer.Entity.Permission.dcm.yml | 12 ++++++++++++ .../Resources/Crisu83.Overseer.Entity.Role.dcm.yml | 11 +++++++++++ 3 files changed, 36 insertions(+) create mode 100644 src/Doctrine/Resources/Crisu83.Overseer.Entity.Assignment.dcm.yml create mode 100644 src/Doctrine/Resources/Crisu83.Overseer.Entity.Permission.dcm.yml create mode 100644 src/Doctrine/Resources/Crisu83.Overseer.Entity.Role.dcm.yml diff --git a/src/Doctrine/Resources/Crisu83.Overseer.Entity.Assignment.dcm.yml b/src/Doctrine/Resources/Crisu83.Overseer.Entity.Assignment.dcm.yml new file mode 100644 index 0000000..45eee28 --- /dev/null +++ b/src/Doctrine/Resources/Crisu83.Overseer.Entity.Assignment.dcm.yml @@ -0,0 +1,13 @@ +Crisu83\Overseer\Entity\Assignment: + type: entity + table: rbac_assignments + id: + subjectId: + column: subject_id + type: string + fields: + subjectName: + type: string + column: subject_name + roles: + type: json_array diff --git a/src/Doctrine/Resources/Crisu83.Overseer.Entity.Permission.dcm.yml b/src/Doctrine/Resources/Crisu83.Overseer.Entity.Permission.dcm.yml new file mode 100644 index 0000000..aaf637f --- /dev/null +++ b/src/Doctrine/Resources/Crisu83.Overseer.Entity.Permission.dcm.yml @@ -0,0 +1,12 @@ +Crisu83\Overseer\Entity\Permission: + type: entity + table: rbac_permissions + id: + name: + type: string + fields: + resourceName: + type: string + column: resource_name + rules: + type: json_array diff --git a/src/Doctrine/Resources/Crisu83.Overseer.Entity.Role.dcm.yml b/src/Doctrine/Resources/Crisu83.Overseer.Entity.Role.dcm.yml new file mode 100644 index 0000000..d4fd51f --- /dev/null +++ b/src/Doctrine/Resources/Crisu83.Overseer.Entity.Role.dcm.yml @@ -0,0 +1,11 @@ +Crisu83\Overseer\Entity\Role: + type: entity + table: rbac_roles + id: + name: + type: string + fields: + roles: + type: json_array + permissions: + type: json_array