From 2ac9c44c922850a93a55582ed98b928423f84a85 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 7 Feb 2020 21:41:13 +0100 Subject: [PATCH] fix Orange-Management/phpOMS#235 --- Models/ProfileMapper.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Models/ProfileMapper.php b/Models/ProfileMapper.php index cdd42b0..90651c6 100644 --- a/Models/ProfileMapper.php +++ b/Models/ProfileMapper.php @@ -51,11 +51,11 @@ final class ProfileMapper extends DataMapperAbstract protected static array $ownsOne = [ 'account' => [ 'mapper' => AccountMapper::class, - 'src' => 'profile_account_account', + 'self' => 'profile_account_account', ], 'image' => [ 'mapper' => MediaMapper::class, - 'src' => 'profile_account_image', + 'self' => 'profile_account_image', ], ]; @@ -69,14 +69,14 @@ final class ProfileMapper extends DataMapperAbstract 'location' => [ 'mapper' => AddressMapper::class, 'table' => 'profile_address', - 'dst' => 'profile_address_address', - 'src' => 'profile_address_profile', + 'external' => 'profile_address_address', + 'self' => 'profile_address_profile', ], 'contactElements' => [ 'mapper' => ContactElementMapper::class, 'table' => 'profile_contactelement', - 'src' => null, - 'dst' => 'profile_contactelement_contact', + 'self' => null, + 'external' => 'profile_contactelement_contact', ], ];