Preparing for query extension

implementing media for task/task elements and preparing for unit parent
display.
This commit is contained in:
Dennis Eichhorn 2016-09-28 22:07:54 +02:00
parent e60ad59329
commit 2876f490f8
3 changed files with 21 additions and 0 deletions

View File

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

View File

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

View File

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