autofixes

This commit is contained in:
Dennis Eichhorn 2020-11-24 18:44:22 +01:00
parent f16b953d1c
commit b5ac710e3d
6 changed files with 19 additions and 19 deletions

View File

@ -45,10 +45,10 @@ final class CostCenterMapper extends DataMapperAbstract
*/
protected static array $hasMany = [
'l11n' => [
'mapper' => L11nCostCenterMapper::class,
'table' => 'accounting_costcenter_l11n',
'self' => 'accounting_costcenter_l11n_costcenter',
'conditional' => true,
'mapper' => L11nCostCenterMapper::class,
'table' => 'accounting_costcenter_l11n',
'self' => 'accounting_costcenter_l11n_costcenter',
'conditional' => true,
'external' => null,
],
];

View File

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

View File

@ -51,11 +51,11 @@ final class L11nCostCenterMapper extends DataMapperAbstract
*/
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'mapper' => LanguageMapper::class,
'external' => 'accounting_costcenter_l11n_language',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
],
];

View File

@ -51,11 +51,11 @@ final class L11nCostObjectMapper extends DataMapperAbstract
*/
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'mapper' => LanguageMapper::class,
'external' => 'accounting_costobject_l11n_language',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
],
];

View File

@ -29,9 +29,9 @@ class CostCenterMapperTest extends \PHPUnit\Framework\TestCase
*/
public function testCR() : void
{
$costcenter = new CostCenter();
$costcenter->code = '123';
$costcenter->l11n->name = 'Test CostCenter';
$costcenter = new CostCenter();
$costcenter->code = '123';
$costcenter->l11n->name = 'Test CostCenter';
$costcenter->l11n->description = 'Test description';
$id = CostCenterMapper::create($costcenter);

View File

@ -29,9 +29,9 @@ class CostObjectMapperTest extends \PHPUnit\Framework\TestCase
*/
public function testCR() : void
{
$costobject = new CostObject();
$costobject->code = '123';
$costobject->l11n->name = 'Test CostObject';
$costobject = new CostObject();
$costobject->code = '123';
$costobject->l11n->name = 'Test CostObject';
$costobject->l11n->description = 'Test description';
$id = CostObjectMapper::create($costobject);