correct datamapper self/external usage (invert)

This commit is contained in:
Dennis Eichhorn 2020-10-21 22:50:20 +02:00
parent 874112f8eb
commit 3b7f61ffd9
4 changed files with 6 additions and 6 deletions

View File

@ -47,9 +47,9 @@ final class CostCenterMapper extends DataMapperAbstract
'l11n' => [
'mapper' => L11nCostCenterMapper::class,
'table' => 'accounting_costcenter_l11n',
'external' => 'accounting_costcenter_l11n_costcenter',
'self' => 'accounting_costcenter_l11n_costcenter',
'conditional' => true,
'self' => null,
'external' => null,
],
];

View File

@ -47,9 +47,9 @@ final class CostObjectMapper extends DataMapperAbstract
'l11n' => [
'mapper' => L11nCostObjectMapper::class,
'table' => 'accounting_costobject_l11n',
'external' => 'accounting_costobject_l11n_costobject',
'self' => 'accounting_costobject_l11n_costobject',
'conditional' => true,
'self' => null,
'external' => null,
],
];

View File

@ -52,7 +52,7 @@ final class L11nCostCenterMapper extends DataMapperAbstract
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'self' => 'accounting_costcenter_l11n_language',
'external' => 'accounting_costcenter_l11n_language',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,

View File

@ -52,7 +52,7 @@ final class L11nCostObjectMapper extends DataMapperAbstract
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'self' => 'accounting_costobject_l11n_language',
'external' => 'accounting_costobject_l11n_language',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,