mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-01-12 09:58:41 +00:00
correct datamapper self/external usage (invert)
This commit is contained in:
parent
93879fd49d
commit
0d1925e366
|
|
@ -49,11 +49,11 @@ final class WikiCategoryMapper extends DataMapperAbstract
|
|||
protected static array $belongsTo = [
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'self' => 'wiki_category_parent',
|
||||
'external' => 'wiki_category_parent',
|
||||
],
|
||||
'app' => [
|
||||
'mapper' => WikiAppMapper::class,
|
||||
'self' => 'wiki_category_app',
|
||||
'external' => 'wiki_category_app',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
'tags' => [
|
||||
'mapper' => TagMapper::class,
|
||||
'table' => 'wiki_tag',
|
||||
'self' => 'wiki_tag_src',
|
||||
'external' => 'wiki_tag_dst',
|
||||
'self' => 'wiki_tag_dst',
|
||||
'external' => 'wiki_tag_src',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
@ -67,11 +67,11 @@ final class WikiDocMapper extends DataMapperAbstract
|
|||
protected static array $belongsTo = [
|
||||
'category' => [
|
||||
'mapper' => WikiCategoryMapper::class,
|
||||
'self' => 'wiki_article_category',
|
||||
'external' => 'wiki_article_category',
|
||||
],
|
||||
'app' => [
|
||||
'mapper' => WikiAppMapper::class,
|
||||
'self' => 'wiki_article_app',
|
||||
'external' => 'wiki_article_app',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user