correct datamapper self/external usage (invert)

This commit is contained in:
Dennis Eichhorn 2020-10-21 22:50:29 +02:00
parent 93879fd49d
commit 0d1925e366
2 changed files with 6 additions and 6 deletions

View File

@ -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',
],
];

View File

@ -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',
],
];