Merge remote-tracking branch 'origin/develop' into develop

# Conflicts:
#	Tasks/Admin/Routes/Web/Api.php
This commit is contained in:
Dennis Eichhorn 2016-10-02 12:10:19 +02:00
commit 856fb3bf2e
3 changed files with 21 additions and 0 deletions

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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.
*