This commit is contained in:
Dennis Eichhorn 2020-02-07 21:41:13 +01:00
parent 09608b59d3
commit 5387cf3537
2 changed files with 7 additions and 7 deletions

View File

@ -54,19 +54,19 @@ final class EmployeeHistoryMapper extends DataMapperAbstract
protected static array $belongsTo = [
'unit' => [
'mapper' => UnitMapper::class,
'src' => 'hr_staff_history_unit',
'self' => 'hr_staff_history_unit',
],
'department' => [
'mapper' => DepartmentMapper::class,
'src' => 'hr_staff_history_department',
'self' => 'hr_staff_history_department',
],
'position' => [
'mapper' => PositionMapper::class,
'src' => 'hr_staff_history_position',
'self' => 'hr_staff_history_position',
],
'employee' => [
'mapper' => EmployeeMapper::class,
'src' => 'hr_staff_history_staff',
'self' => 'hr_staff_history_staff',
],
];

View File

@ -51,7 +51,7 @@ final class EmployeeMapper extends DataMapperAbstract
protected static array $belongsTo = [
'profile' => [
'mapper' => ProfileMapper::class,
'src' => 'hr_staff_profile',
'self' => 'hr_staff_profile',
],
];
@ -65,8 +65,8 @@ final class EmployeeMapper extends DataMapperAbstract
'companyHistory' => [
'mapper' => EmployeeHistoryMapper::class,
'table' => 'hr_staff_history',
'dst' => 'hr_staff_history_staff',
'src' => null,
'external' => 'hr_staff_history_staff',
'self' => null,
],
];