mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-11 16:18:40 +00:00
bug fixes / dbmapper fixes
This commit is contained in:
parent
89b356a58d
commit
90115162de
|
|
@ -50,12 +50,12 @@ final class DepartmentMapper extends DataMapperFactory
|
|||
*/
|
||||
public const BELONGS_TO = [
|
||||
'unit' => [
|
||||
'mapper' => UnitMapper::class,
|
||||
'external' => 'organization_department_unit',
|
||||
'mapper' => UnitMapper::class,
|
||||
'external' => 'organization_department_unit',
|
||||
],
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'external' => 'organization_department_parent',
|
||||
'mapper' => self::class,
|
||||
'external' => 'organization_department_parent',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -50,12 +50,12 @@ final class PositionMapper extends DataMapperFactory
|
|||
*/
|
||||
public const BELONGS_TO = [
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'external' => 'organization_position_parent',
|
||||
'mapper' => self::class,
|
||||
'external' => 'organization_position_parent',
|
||||
],
|
||||
'department' => [
|
||||
'mapper' => DepartmentMapper::class,
|
||||
'external' => 'organization_position_department',
|
||||
'mapper' => DepartmentMapper::class,
|
||||
'external' => 'organization_position_department',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ final class UnitMapper extends DataMapperFactory
|
|||
*/
|
||||
public const OWNS_ONE = [
|
||||
'image' => [
|
||||
'mapper' => MediaMapper::class,
|
||||
'external' => 'organization_unit_image',
|
||||
'mapper' => MediaMapper::class,
|
||||
'external' => 'organization_unit_image',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
@ -64,8 +64,8 @@ final class UnitMapper extends DataMapperFactory
|
|||
*/
|
||||
public const BELONGS_TO = [
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'external' => 'organization_unit_parent',
|
||||
'mapper' => self::class,
|
||||
'external' => 'organization_unit_parent',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user