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