mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-11 12:28:39 +00:00
Automated formatting changes
This commit is contained in:
parent
b076c12280
commit
cb1a167a54
|
|
@ -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',
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user