mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-23 21:38:41 +00:00
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # Tasks/Admin/Routes/Web/Api.php
This commit is contained in:
commit
856fb3bf2e
|
|
@ -34,6 +34,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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -34,6 +34,13 @@ class PositionMapper extends DataMapperAbstract
|
|||
'organization_position_status' => ['name' => 'organization_position_status', 'type' => 'int', 'internal' => 'status'],
|
||||
];
|
||||
|
||||
protected static $belongsTo = [
|
||||
'account' => [
|
||||
'mapper' => PositionMapper::class,
|
||||
'dest' => 'organization_position_parent',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Primary table.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -33,6 +33,13 @@ class UnitMapper extends DataMapperAbstract
|
|||
'organization_unit_status' => ['name' => 'organization_unit_status', 'type' => 'int', 'internal' => 'status'],
|
||||
];
|
||||
|
||||
protected static $belongsTo = [
|
||||
'account' => [
|
||||
'mapper' => UnitMapper::class,
|
||||
'dest' => 'organization_uni_parent',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Primary table.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user