Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 1.34 KB

2021-11-12-multiple-product-media-import-export.md

File metadata and controls

17 lines (17 loc) · 1.34 KB
title issue author author_email author_github
Multiple product media import export
NEXT-14709
d.neustadt
d.neustadt@shopware.com
dneustadt

Core

  • Added hash property and getter in Shopware\Core\Content\Media\File\MediaFile for storing a file hash.
  • Changed Shopware\Core\Content\Media\File\FileFetcher to hash file and store it in instance of MediaFile.
  • Changed Shopware\Core\Content\Media\Metadata to add file hash to metadata from instance of MediaFile.
  • Changed Shopware\Core\Content\ImportExport\DataAbstractionLayer\Serializer\Entity::deserialize to use file hash for fetching existing media data sets linked to an identical file, unless a specific id is provided.
  • Changed Shopware\Core\Content\ImportExport\DataAbstractionLayer\Serializer\Entity\ProductSerializer::deserialize to read URLs in the format of http://example.com/example1.png|http://example.com/example2.png from media key and deserialize them using MediaSerializer.
  • Changed Shopware\Core\Content\ImportExport\DataAbstractionLayer\Serializer\Entity\ProductSerializer::serialize to write URLs in the format of http://example.com/example1.png|http://example.com/example2.png to mapped media key from existing product media.

Administration

  • Changed sw-import-export-entity-path-select to handle one-to-many media assocation in mapping