Automated formatting changes

This commit is contained in:
Formatter Bot 2020-10-21 21:10:24 +00:00
parent b076c12280
commit cb1a167a54
2 changed files with 8 additions and 8 deletions

View File

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

View File

@ -50,7 +50,7 @@ final class EmployeeMapper extends DataMapperAbstract
*/
protected static array $belongsTo = [
'profile' => [
'mapper' => ProfileMapper::class,
'mapper' => ProfileMapper::class,
'external' => 'hr_staff_profile',
],
];
@ -63,9 +63,9 @@ final class EmployeeMapper extends DataMapperAbstract
*/
protected static array $hasMany = [
'companyHistory' => [
'mapper' => EmployeeHistoryMapper::class,
'table' => 'hr_staff_history', // @todo: is this requried? This is stored in the mapper already. In other places I'm not using this, either use it everywhere or nowhere. Using the mapper is slower but protects us from table name changes!
'self' => 'hr_staff_history_staff',
'mapper' => EmployeeHistoryMapper::class,
'table' => 'hr_staff_history', // @todo: is this requried? This is stored in the mapper already. In other places I'm not using this, either use it everywhere or nowhere. Using the mapper is slower but protects us from table name changes!
'self' => 'hr_staff_history_staff',
'external' => null,
],
];