bug fixes / dbmapper fixes

This commit is contained in:
Dennis Eichhorn 2021-12-19 20:20:39 +01:00
parent 89b356a58d
commit 90115162de
3 changed files with 12 additions and 12 deletions

View File

@ -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',
],
];

View File

@ -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',
],
];

View File

@ -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',
],
];