diff --git a/Controller/Controller.php b/Controller/Controller.php index 422f73a..f984fd5 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -15,7 +15,6 @@ declare(strict_types=1); namespace Modules\Accounting\Controller; use phpOMS\Module\ModuleAbstract; -use phpOMS\Module\WebInterface; /** * Controller class. diff --git a/Models/L11nCostCenterMapper.php b/Models/L11nCostCenterMapper.php index 442370a..58141d9 100644 --- a/Models/L11nCostCenterMapper.php +++ b/Models/L11nCostCenterMapper.php @@ -24,8 +24,6 @@ use phpOMS\Localization\Defaults\LanguageMapper; * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 - * - * @todo Do I really want to create a relation to the language mapper? It's not really needed right? */ final class L11nCostCenterMapper extends DataMapperAbstract { @@ -43,22 +41,6 @@ final class L11nCostCenterMapper extends DataMapperAbstract 'accounting_costcenter_l11n_language' => ['name' => 'accounting_costcenter_l11n_language', 'type' => 'string', 'internal' => 'language'], ]; - /** - * Has one relation. - * - * @var array - * @since 1.0.0 - */ - protected static array $ownsOne = [ - 'language' => [ - 'mapper' => LanguageMapper::class, - 'external' => 'accounting_costcenter_l11n_language', - 'by' => 'code2', - 'column' => 'code2', - 'conditional' => true, - ], - ]; - /** * Primary table. * diff --git a/Models/L11nCostObjectMapper.php b/Models/L11nCostObjectMapper.php index 54098ce..64dd78f 100644 --- a/Models/L11nCostObjectMapper.php +++ b/Models/L11nCostObjectMapper.php @@ -24,8 +24,6 @@ use phpOMS\Localization\Defaults\LanguageMapper; * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 - * - * @todo Do I really want to create a relation to the language mapper? It's not really needed right? */ final class L11nCostObjectMapper extends DataMapperAbstract { @@ -43,22 +41,6 @@ final class L11nCostObjectMapper extends DataMapperAbstract 'accounting_costobject_l11n_language' => ['name' => 'accounting_costobject_l11n_language', 'type' => 'string', 'internal' => 'language'], ]; - /** - * Has one relation. - * - * @var array - * @since 1.0.0 - */ - protected static array $ownsOne = [ - 'language' => [ - 'mapper' => LanguageMapper::class, - 'external' => 'accounting_costobject_l11n_language', - 'by' => 'code2', - 'column' => 'code2', - 'conditional' => true, - ], - ]; - /** * Primary table. *