From eb121e37869147d3d51955939ce5d02f9efe3150 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 22 Mar 2020 18:42:34 +0100 Subject: [PATCH] implement localization --- Models/DepartmentMapper.php | 8 ++++++++ Models/PositionMapper.php | 8 ++++++++ Models/UnitMapper.php | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/Models/DepartmentMapper.php b/Models/DepartmentMapper.php index 47da65a..dad25d3 100644 --- a/Models/DepartmentMapper.php +++ b/Models/DepartmentMapper.php @@ -59,6 +59,14 @@ final class DepartmentMapper extends DataMapperAbstract ], ]; + /** + * Model to use by the mapper. + * + * @var string + * @since 1.0.0 + */ + protected static string $model = Department::class; + /** * Primary table. * diff --git a/Models/PositionMapper.php b/Models/PositionMapper.php index 28f9e56..21d9b0d 100644 --- a/Models/PositionMapper.php +++ b/Models/PositionMapper.php @@ -59,6 +59,14 @@ final class PositionMapper extends DataMapperAbstract ], ]; + /** + * Model to use by the mapper. + * + * @var string + * @since 1.0.0 + */ + protected static string $model = Position::class; + /** * Primary table. * diff --git a/Models/UnitMapper.php b/Models/UnitMapper.php index 8d15685..1b402d9 100644 --- a/Models/UnitMapper.php +++ b/Models/UnitMapper.php @@ -54,6 +54,14 @@ final class UnitMapper extends DataMapperAbstract ], ]; + /** + * Model to use by the mapper. + * + * @var string + * @since 1.0.0 + */ + protected static string $model = Unit::class; + /** * Primary table. *