Wir möchten Artikel aus unsrem alten XTc Veyton Shop importieren mit dem offiziellen Migration-Tool in Shopware 5.5.10.
Beim Importieren der Bilder ist ein Fehler aufgetreten
Code : 0
Line : 92
File : /home/xxxxxx/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php
Error : A new entity was found through the relationship 'Shopware\Models\Article\Image#media' that was not configured to cascade persist operations for entity: media/image/tempartikelbildGxm4Ps2bAgD3o.jpg. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}).
Trace : #0 /home/xxxxxx/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(852): Doctrine\ORM\ORMInvalidArgumentException::newEntityFoundThroughRelationship(Array, Object(Shopware\Proxies\ __CG__ \Shopware\Models\Media\Media)) #1 /home/xxxxxx/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(740): Doctrine\ORM\UnitOfWork->computeAssociationChanges(Array, Object(Shopware\Proxies\ __CG__ \Shopware\Models\Media\Media)) #2 /home/xxxxxx/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(802): Doctrine\ORM\UnitOfWork->computeChangeSet(Object(Doctrine\ORM\Mapping\ClassMetadata), Object(Shopware\Models\Article\Image)) #3 /home/xxxxxx/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(340): Doctrine\ORM\UnitOfWork->computeChangeSets() #4 /home/xxxxxx/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork->commit(NULL) #5 /home/xxxxxx/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/ImageImporter.php(129): Doctrine\ORM\EntityManager->flush() #6 /home/xxxxxx/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/Import.php(187): Shopware\SwagMigration\Components\DbServices\Import\ImageImporter->importArticleImage(Array) #7 /home/xxxxxx/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/Migration/Import/Resource/Image.php(141): Shopware\SwagMigration\Components\DbServices\Import\Import->articleImage(Array) #8 /home/xxxxxx/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Controllers/Backend/SwagMigration.php(444): Shopware\SwagMigration\Components\Migration\Import\Resource\Image->run() #9 /home/xxxxxx/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Controllers/Backend/SwagMigration.php(479): Shopware_Controllers_Backend_SwagMigration->runImport('import_images') #10
manchmal taucht dieser Fehler auf und der Import bricht danach ab. An was kann das liegen??? Ich habe keine Plugins im Einsatz und auch nix am Code verändert.
das betroffene Bild ist scheinbar immer ein anderes.