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 = [ protected static array $belongsTo = [
'parent' => [ 'parent' => [
'mapper' => self::class, 'mapper' => self::class,
'self' => 'wiki_category_parent', 'external' => 'wiki_category_parent',
], ],
'app' => [ 'app' => [
'mapper' => WikiAppMapper::class, 'mapper' => WikiAppMapper::class,
'self' => 'wiki_category_app', 'external' => 'wiki_category_app',
], ],
]; ];

View File

@ -53,8 +53,8 @@ final class WikiDocMapper extends DataMapperAbstract
'tags' => [ 'tags' => [
'mapper' => TagMapper::class, 'mapper' => TagMapper::class,
'table' => 'wiki_tag', 'table' => 'wiki_tag',
'self' => 'wiki_tag_src', 'self' => 'wiki_tag_dst',
'external' => 'wiki_tag_dst', 'external' => 'wiki_tag_src',
], ],
]; ];
@ -67,11 +67,11 @@ final class WikiDocMapper extends DataMapperAbstract
protected static array $belongsTo = [ protected static array $belongsTo = [
'category' => [ 'category' => [
'mapper' => WikiCategoryMapper::class, 'mapper' => WikiCategoryMapper::class,
'self' => 'wiki_article_category', 'external' => 'wiki_article_category',
], ],
'app' => [ 'app' => [
'mapper' => WikiAppMapper::class, 'mapper' => WikiAppMapper::class,
'self' => 'wiki_article_app', 'external' => 'wiki_article_app',
], ],
]; ];