correct datamapper self/external usage (invert)

This commit is contained in:
Dennis Eichhorn 2020-10-21 22:50:25 +02:00
parent ec8869b8b4
commit 2db5404d5e

View File

@ -53,7 +53,7 @@ final class EditorDocMapper extends DataMapperAbstract
protected static array $belongsTo = [
'createdBy' => [
'mapper' => AccountMapper::class,
'self' => 'editor_doc_created_by',
'external' => 'editor_doc_created_by',
],
];
@ -67,8 +67,8 @@ final class EditorDocMapper extends DataMapperAbstract
'tags' => [
'mapper' => TagMapper::class,
'table' => 'editor_doc_tag',
'self' => 'editor_doc_tag_src',
'external' => 'editor_doc_tag_dst',
'self' => 'editor_doc_tag_dst',
'external' => 'editor_doc_tag_src',
],
];