correct datamapper self/external usage (invert)

This commit is contained in:
Dennis Eichhorn 2020-10-21 22:50:36 +02:00
parent 9c86db62fc
commit d774bda995
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ final class TagL11nMapper extends DataMapperAbstract
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'self' => 'tag_l11n_language',
'external' => 'tag_l11n_language',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,

View File

@ -54,10 +54,10 @@ final class TagMapper extends DataMapperAbstract
'title' => [
'mapper' => TagL11nMapper::class,
'table' => 'tag_l11n',
'external' => 'tag_l11n_tag',
'self' => 'tag_l11n_tag',
'column' => 'title',
'conditional' => true,
'self' => null,
'external' => null,
],
];
@ -71,7 +71,7 @@ final class TagMapper extends DataMapperAbstract
protected static array $belongsTo = [
'owner' => [
'mapper' => AccountMapper::class,
'self' => 'tag_owner',
'external' => 'tag_owner',
],
];
*/