mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-06 11:38:40 +00:00
Preparing for query extension
implementing media for task/task elements and preparing for unit parent display.
This commit is contained in:
parent
e60ad59329
commit
2876f490f8
|
|
@ -33,6 +33,13 @@ class DepartmentMapper extends DataMapperAbstract
|
|||
'organization_department_unit' => ['name' => 'organization_department_unit', 'type' => 'int', 'internal' => 'unit'],
|
||||
];
|
||||
|
||||
protected static $belongsTo = [
|
||||
'account' => [
|
||||
'mapper' => UnitMapper::class,
|
||||
'dest' => 'organization_department_unit',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Primary table.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -33,6 +33,13 @@ class PositionMapper extends DataMapperAbstract
|
|||
'organization_position_parent' => ['name' => 'organization_position_parent', 'type' => 'int', 'internal' => 'parent'],
|
||||
];
|
||||
|
||||
protected static $belongsTo = [
|
||||
'account' => [
|
||||
'mapper' => PositionMapper::class,
|
||||
'dest' => 'organization_position_parent',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Primary table.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -32,6 +32,13 @@ class UnitMapper extends DataMapperAbstract
|
|||
'organization_unit_parent' => ['name' => 'organization_unit_parent', 'type' => 'int', 'internal' => 'parent'],
|
||||
];
|
||||
|
||||
protected static $belongsTo = [
|
||||
'account' => [
|
||||
'mapper' => UnitMapper::class,
|
||||
'dest' => 'organization_uni_parent',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Primary table.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user