diff --git a/Models/ContactMapper.php b/Models/ContactMapper.php index 70e6855..3939297 100644 --- a/Models/ContactMapper.php +++ b/Models/ContactMapper.php @@ -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', ], ]; diff --git a/Models/ProfileMapper.php b/Models/ProfileMapper.php index f2e5688..74b50af 100755 --- a/Models/ProfileMapper.php +++ b/Models/ProfileMapper.php @@ -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', ], ];