mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-18 09:18:40 +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 = [
|
protected static array $belongsTo = [
|
||||||
'unit' => [
|
'unit' => [
|
||||||
'mapper' => UnitMapper::class,
|
'mapper' => UnitMapper::class,
|
||||||
'self' => 'organization_department_unit',
|
'external' => 'organization_department_unit',
|
||||||
],
|
],
|
||||||
'parent' => [
|
'parent' => [
|
||||||
'mapper' => self::class,
|
'mapper' => self::class,
|
||||||
'self' => 'organization_department_parent',
|
'external' => 'organization_department_parent',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,11 +51,11 @@ final class PositionMapper extends DataMapperAbstract
|
||||||
protected static array $belongsTo = [
|
protected static array $belongsTo = [
|
||||||
'parent' => [
|
'parent' => [
|
||||||
'mapper' => self::class,
|
'mapper' => self::class,
|
||||||
'self' => 'organization_position_parent',
|
'external' => 'organization_position_parent',
|
||||||
],
|
],
|
||||||
'department' => [
|
'department' => [
|
||||||
'mapper' => DepartmentMapper::class,
|
'mapper' => DepartmentMapper::class,
|
||||||
'self' => 'organization_position_department',
|
'external' => 'organization_position_department',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ final class UnitMapper extends DataMapperAbstract
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
'image' => [
|
'image' => [
|
||||||
'mapper' => MediaMapper::class,
|
'mapper' => MediaMapper::class,
|
||||||
'self' => 'organization_unit_image',
|
'external' => 'organization_unit_image',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@ final class UnitMapper extends DataMapperAbstract
|
||||||
protected static array $belongsTo = [
|
protected static array $belongsTo = [
|
||||||
'parent' => [
|
'parent' => [
|
||||||
'mapper' => self::class,
|
'mapper' => self::class,
|
||||||
'self' => 'organization_unit_parent',
|
'external' => 'organization_unit_parent',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user