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 = [ public const BELONGS_TO = [
'unit' => [ 'unit' => [
'mapper' => UnitMapper::class, 'mapper' => UnitMapper::class,
'external' => 'organization_department_unit', 'external' => 'organization_department_unit',
], ],
'parent' => [ 'parent' => [
'mapper' => self::class, 'mapper' => self::class,
'external' => 'organization_department_parent', 'external' => 'organization_department_parent',
], ],
]; ];

View File

@ -50,12 +50,12 @@ final class PositionMapper extends DataMapperFactory
*/ */
public const BELONGS_TO = [ public const BELONGS_TO = [
'parent' => [ 'parent' => [
'mapper' => self::class, 'mapper' => self::class,
'external' => 'organization_position_parent', 'external' => 'organization_position_parent',
], ],
'department' => [ 'department' => [
'mapper' => DepartmentMapper::class, 'mapper' => DepartmentMapper::class,
'external' => 'organization_position_department', 'external' => 'organization_position_department',
], ],
]; ];

View File

@ -51,8 +51,8 @@ final class UnitMapper extends DataMapperFactory
*/ */
public const OWNS_ONE = [ public const OWNS_ONE = [
'image' => [ 'image' => [
'mapper' => MediaMapper::class, 'mapper' => MediaMapper::class,
'external' => 'organization_unit_image', 'external' => 'organization_unit_image',
], ],
]; ];
@ -64,8 +64,8 @@ final class UnitMapper extends DataMapperFactory
*/ */
public const BELONGS_TO = [ public const BELONGS_TO = [
'parent' => [ 'parent' => [
'mapper' => self::class, 'mapper' => self::class,
'external' => 'organization_unit_parent', 'external' => 'organization_unit_parent',
], ],
]; ];