From 90115162de5602bc55dffafe5d08e5925ab9f6db Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 19 Dec 2021 20:20:39 +0100 Subject: [PATCH] bug fixes / dbmapper fixes --- Models/DepartmentMapper.php | 8 ++++---- Models/PositionMapper.php | 8 ++++---- Models/UnitMapper.php | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Models/DepartmentMapper.php b/Models/DepartmentMapper.php index 74651c0..fb617f4 100755 --- a/Models/DepartmentMapper.php +++ b/Models/DepartmentMapper.php @@ -50,12 +50,12 @@ final class DepartmentMapper extends DataMapperFactory */ public const BELONGS_TO = [ 'unit' => [ - 'mapper' => UnitMapper::class, - 'external' => 'organization_department_unit', + 'mapper' => UnitMapper::class, + 'external' => 'organization_department_unit', ], 'parent' => [ - 'mapper' => self::class, - 'external' => 'organization_department_parent', + 'mapper' => self::class, + 'external' => 'organization_department_parent', ], ]; diff --git a/Models/PositionMapper.php b/Models/PositionMapper.php index 91097ec..a6bc506 100755 --- a/Models/PositionMapper.php +++ b/Models/PositionMapper.php @@ -50,12 +50,12 @@ final class PositionMapper extends DataMapperFactory */ public const BELONGS_TO = [ 'parent' => [ - 'mapper' => self::class, - 'external' => 'organization_position_parent', + 'mapper' => self::class, + 'external' => 'organization_position_parent', ], 'department' => [ - 'mapper' => DepartmentMapper::class, - 'external' => 'organization_position_department', + 'mapper' => DepartmentMapper::class, + 'external' => 'organization_position_department', ], ]; diff --git a/Models/UnitMapper.php b/Models/UnitMapper.php index 6ef788a..f887e2e 100755 --- a/Models/UnitMapper.php +++ b/Models/UnitMapper.php @@ -51,8 +51,8 @@ final class UnitMapper extends DataMapperFactory */ public const OWNS_ONE = [ 'image' => [ - 'mapper' => MediaMapper::class, - 'external' => 'organization_unit_image', + 'mapper' => MediaMapper::class, + 'external' => 'organization_unit_image', ], ]; @@ -64,8 +64,8 @@ final class UnitMapper extends DataMapperFactory */ public const BELONGS_TO = [ 'parent' => [ - 'mapper' => self::class, - 'external' => 'organization_unit_parent', + 'mapper' => self::class, + 'external' => 'organization_unit_parent', ], ];