mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-12 14:28:41 +00:00
correct datamapper self/external usage (invert)
This commit is contained in:
parent
344dfd6411
commit
4137044b5f
|
|
@ -51,11 +51,11 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
protected static array $belongsTo = [
|
||||
'unit' => [
|
||||
'mapper' => UnitMapper::class,
|
||||
'self' => 'organization_department_unit',
|
||||
'external' => 'organization_department_unit',
|
||||
],
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'self' => 'organization_department_parent',
|
||||
'external' => 'organization_department_parent',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ final class PositionMapper extends DataMapperAbstract
|
|||
protected static array $belongsTo = [
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'self' => 'organization_position_parent',
|
||||
'external' => 'organization_position_parent',
|
||||
],
|
||||
'department' => [
|
||||
'mapper' => DepartmentMapper::class,
|
||||
'self' => 'organization_position_department',
|
||||
'external' => 'organization_position_department',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ final class UnitMapper extends DataMapperAbstract
|
|||
protected static array $ownsOne = [
|
||||
'image' => [
|
||||
'mapper' => MediaMapper::class,
|
||||
'self' => 'organization_unit_image',
|
||||
'external' => 'organization_unit_image',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ final class UnitMapper extends DataMapperAbstract
|
|||
protected static array $belongsTo = [
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'self' => 'organization_unit_parent',
|
||||
'external' => 'organization_unit_parent',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user