correct datamapper self/external usage (invert)

This commit is contained in:
Dennis Eichhorn 2020-10-21 22:50:33 +02:00
parent dbd083c9af
commit adae005a4b
2 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ final class ContactElementMapper extends DataMapperAbstract
protected static array $ownsOne = [
'image' => [
'mapper' => MediaMapper::class,
'self' => 'profile_contact_image',
'external' => 'profile_contact_image',
],
];

View File

@ -53,11 +53,11 @@ final class ProfileMapper extends DataMapperAbstract
protected static array $ownsOne = [
'account' => [
'mapper' => AccountMapper::class,
'self' => 'profile_account_account',
'external' => 'profile_account_account',
],
'image' => [
'mapper' => MediaMapper::class,
'self' => 'profile_account_image',
'external' => 'profile_account_image',
],
];
@ -77,8 +77,8 @@ final class ProfileMapper extends DataMapperAbstract
'contactElements' => [
'mapper' => ContactElementMapper::class,
'table' => 'profile_contactelementrel',
'self' => 'profile_contactelementrel_element',
'external' => 'profile_contactelementrel_profile',
'self' => 'profile_contactelementrel_profile',
'external' => 'profile_contactelementrel_element',
],
];