mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-02-10 10:28:41 +00:00
correct datamapper self/external usage (invert)
This commit is contained in:
parent
73663c9f04
commit
5a6bbcdd62
|
|
@ -54,11 +54,11 @@ final class ReportMapper extends DataMapperAbstract
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
'source' => [
|
'source' => [
|
||||||
'mapper' => \Modules\Media\Models\CollectionMapper::class,
|
'mapper' => \Modules\Media\Models\CollectionMapper::class,
|
||||||
'self' => 'helper_report_media',
|
'external' => 'helper_report_media',
|
||||||
],
|
],
|
||||||
'template' => [
|
'template' => [
|
||||||
'mapper' => TemplateMapper::class,
|
'mapper' => TemplateMapper::class,
|
||||||
'self' => 'helper_report_template',
|
'external' => 'helper_report_template',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -71,7 +71,7 @@ final class ReportMapper extends DataMapperAbstract
|
||||||
protected static array $belongsTo = [
|
protected static array $belongsTo = [
|
||||||
'createdBy' => [
|
'createdBy' => [
|
||||||
'mapper' => AccountMapper::class,
|
'mapper' => AccountMapper::class,
|
||||||
'self' => 'helper_report_creator',
|
'external' => 'helper_report_creator',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ final class TemplateMapper extends DataMapperAbstract
|
||||||
protected static array $ownsOne = [
|
protected static array $ownsOne = [
|
||||||
'source' => [
|
'source' => [
|
||||||
'mapper' => CollectionMapper::class,
|
'mapper' => CollectionMapper::class,
|
||||||
'self' => 'helper_template_media',
|
'external' => 'helper_template_media',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -73,11 +73,11 @@ final class TemplateMapper extends DataMapperAbstract
|
||||||
protected static array $belongsTo = [
|
protected static array $belongsTo = [
|
||||||
'createdBy' => [
|
'createdBy' => [
|
||||||
'mapper' => AccountMapper::class,
|
'mapper' => AccountMapper::class,
|
||||||
'self' => 'helper_template_creator',
|
'external' => 'helper_template_creator',
|
||||||
],
|
],
|
||||||
'unit' => [
|
'unit' => [
|
||||||
'mapper' => UnitMapper::class,
|
'mapper' => UnitMapper::class,
|
||||||
'self' => 'helper_template_unit',
|
'external' => 'helper_template_unit',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -91,14 +91,14 @@ final class TemplateMapper extends DataMapperAbstract
|
||||||
'reports' => [
|
'reports' => [
|
||||||
'mapper' => ReportMapper::class,
|
'mapper' => ReportMapper::class,
|
||||||
'table' => 'helper_report',
|
'table' => 'helper_report',
|
||||||
'external' => 'helper_report_template',
|
'self' => 'helper_report_template',
|
||||||
'self' => null,
|
'external' => null,
|
||||||
],
|
],
|
||||||
'tags' => [
|
'tags' => [
|
||||||
'mapper' => TagMapper::class,
|
'mapper' => TagMapper::class,
|
||||||
'table' => 'helper_template_tag',
|
'table' => 'helper_template_tag',
|
||||||
'self' => 'helper_template_tag_src',
|
'self' => 'helper_template_tag_dst',
|
||||||
'external' => 'helper_template_tag_dst',
|
'external' => 'helper_template_tag_src',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user