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 = [ protected static array $belongsTo = [
'unit' => [ 'unit' => [
'mapper' => UnitMapper::class, 'mapper' => UnitMapper::class,
'src' => 'hr_staff_history_unit', 'self' => 'hr_staff_history_unit',
], ],
'department' => [ 'department' => [
'mapper' => DepartmentMapper::class, 'mapper' => DepartmentMapper::class,
'src' => 'hr_staff_history_department', 'self' => 'hr_staff_history_department',
], ],
'position' => [ 'position' => [
'mapper' => PositionMapper::class, 'mapper' => PositionMapper::class,
'src' => 'hr_staff_history_position', 'self' => 'hr_staff_history_position',
], ],
'employee' => [ 'employee' => [
'mapper' => EmployeeMapper::class, '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 = [ protected static array $belongsTo = [
'profile' => [ 'profile' => [
'mapper' => ProfileMapper::class, 'mapper' => ProfileMapper::class,
'src' => 'hr_staff_profile', 'self' => 'hr_staff_profile',
], ],
]; ];
@ -65,8 +65,8 @@ final class EmployeeMapper extends DataMapperAbstract
'companyHistory' => [ 'companyHistory' => [
'mapper' => EmployeeHistoryMapper::class, 'mapper' => EmployeeHistoryMapper::class,
'table' => 'hr_staff_history', 'table' => 'hr_staff_history',
'dst' => 'hr_staff_history_staff', 'external' => 'hr_staff_history_staff',
'src' => null, 'self' => null,
], ],
]; ];