correct datamapper self/external usage (invert)

This commit is contained in:
Dennis Eichhorn 2020-10-21 22:50:23 +02:00
parent e12174075a
commit 70b980e4f2
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ final class CommentListMapper extends DataMapperAbstract
'comments' => [ 'comments' => [
'mapper' => CommentMapper::class, 'mapper' => CommentMapper::class,
'table' => 'comments_comment', 'table' => 'comments_comment',
'external' => 'comments_comment_list', 'self' => 'comments_comment_list',
'self' => null, 'external' => null,
], ],
]; ];

View File

@ -54,11 +54,11 @@ final class CommentMapper extends DataMapperAbstract
protected static array $belongsTo = [ protected static array $belongsTo = [
'createdBy' => [ 'createdBy' => [
'mapper' => AccountMapper::class, 'mapper' => AccountMapper::class,
'self' => 'comments_comment_created_by', 'external' => 'comments_comment_created_by',
], ],
'list' => [ 'list' => [
'mapper' => CommentListMapper::class, 'mapper' => CommentListMapper::class,
'self' => 'comments_comment_list', 'external' => 'comments_comment_list',
], ],
]; ];