From 39374701ec4a2b7955c895d4bf529bc3839931b4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 10 Dec 2018 18:25:00 +0100 Subject: [PATCH] Use self instead of class --- Models/DepartmentMapper.php | 2 +- Models/PositionMapper.php | 2 +- Models/UnitMapper.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Models/DepartmentMapper.php b/Models/DepartmentMapper.php index ca647ac..84e903c 100644 --- a/Models/DepartmentMapper.php +++ b/Models/DepartmentMapper.php @@ -54,7 +54,7 @@ final class DepartmentMapper extends DataMapperAbstract 'dest' => 'organization_department_unit', ], 'parent' => [ - 'mapper' => DepartmentMapper::class, + 'mapper' => self::class, 'dest' => 'organization_department_parent', ], ]; diff --git a/Models/PositionMapper.php b/Models/PositionMapper.php index 13d5047..d32508c 100644 --- a/Models/PositionMapper.php +++ b/Models/PositionMapper.php @@ -51,7 +51,7 @@ final class PositionMapper extends DataMapperAbstract */ protected static $belongsTo = [ 'parent' => [ - 'mapper' => PositionMapper::class, + 'mapper' => self::class, 'dest' => 'organization_position_parent', ], 'department' => [ diff --git a/Models/UnitMapper.php b/Models/UnitMapper.php index 8fce9e2..9e7706c 100644 --- a/Models/UnitMapper.php +++ b/Models/UnitMapper.php @@ -49,11 +49,11 @@ final class UnitMapper extends DataMapperAbstract */ protected static $belongsTo = [ 'unit' => [ - 'mapper' => UnitMapper::class, + 'mapper' => self::class, 'dest' => 'organization_uni_parent', ], 'parent' => [ - 'mapper' => UnitMapper::class, + 'mapper' => self::class, 'dest' => 'organization_unit_parent', ], ];