correct datamapper self/external usage (invert)

This commit is contained in:
Dennis Eichhorn 2020-10-21 22:50:35 +02:00
parent 51da137210
commit b647a1e1a5

View File

@ -82,11 +82,11 @@ final class SupplierMapper extends DataMapperAbstract
protected static array $ownsOne = [ protected static array $ownsOne = [
'profile' => [ 'profile' => [
'mapper' => ProfileMapper::class, 'mapper' => ProfileMapper::class,
'self' => 'suppliermgmt_supplier_profile', 'external' => 'suppliermgmt_supplier_profile',
], ],
'mainAddress' => [ 'mainAddress' => [
'mapper' => AddressMapper::class, 'mapper' => AddressMapper::class,
'self' => 'suppliermgmt_supplier_address', 'external' => 'suppliermgmt_supplier_address',
], ],
]; ];
@ -100,14 +100,14 @@ final class SupplierMapper extends DataMapperAbstract
'files' => [ 'files' => [
'mapper' => MediaMapper::class, /* mapper of the related object */ 'mapper' => MediaMapper::class, /* mapper of the related object */
'table' => 'suppliermgmt_supplier_media', /* table of the related object, null if no relation table is used (many->1) */ 'table' => 'suppliermgmt_supplier_media', /* table of the related object, null if no relation table is used (many->1) */
'external' => 'suppliermgmt_supplier_media_dst', 'external' => 'suppliermgmt_supplier_media_src',
'self' => 'suppliermgmt_supplier_media_src', 'self' => 'suppliermgmt_supplier_media_dst',
], ],
'contactElements' => [ 'contactElements' => [
'mapper' => ContactElementMapper::class, 'mapper' => ContactElementMapper::class,
'table' => 'suppliermgmt_supplier_contactelement', 'table' => 'suppliermgmt_supplier_contactelement',
'external' => 'suppliermgmt_supplier_contactelement_src', 'external' => 'suppliermgmt_supplier_contactelement_dst',
'self' => 'suppliermgmt_supplier_contactelement_dst', 'self' => 'suppliermgmt_supplier_contactelement_src',
], ],
]; ];
} }