mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-15 15:58:40 +00:00
Use self instead of class
This commit is contained in:
parent
087c654db1
commit
39374701ec
|
|
@ -54,7 +54,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
||||||
'dest' => 'organization_department_unit',
|
'dest' => 'organization_department_unit',
|
||||||
],
|
],
|
||||||
'parent' => [
|
'parent' => [
|
||||||
'mapper' => DepartmentMapper::class,
|
'mapper' => self::class,
|
||||||
'dest' => 'organization_department_parent',
|
'dest' => 'organization_department_parent',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ final class PositionMapper extends DataMapperAbstract
|
||||||
*/
|
*/
|
||||||
protected static $belongsTo = [
|
protected static $belongsTo = [
|
||||||
'parent' => [
|
'parent' => [
|
||||||
'mapper' => PositionMapper::class,
|
'mapper' => self::class,
|
||||||
'dest' => 'organization_position_parent',
|
'dest' => 'organization_position_parent',
|
||||||
],
|
],
|
||||||
'department' => [
|
'department' => [
|
||||||
|
|
|
||||||
|
|
@ -49,11 +49,11 @@ final class UnitMapper extends DataMapperAbstract
|
||||||
*/
|
*/
|
||||||
protected static $belongsTo = [
|
protected static $belongsTo = [
|
||||||
'unit' => [
|
'unit' => [
|
||||||
'mapper' => UnitMapper::class,
|
'mapper' => self::class,
|
||||||
'dest' => 'organization_uni_parent',
|
'dest' => 'organization_uni_parent',
|
||||||
],
|
],
|
||||||
'parent' => [
|
'parent' => [
|
||||||
'mapper' => UnitMapper::class,
|
'mapper' => self::class,
|
||||||
'dest' => 'organization_unit_parent',
|
'dest' => 'organization_unit_parent',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user