oroinc / orocommerce

Main OroCommerce package with core functionality.
http:///www.orocommerce.com/
Other
193 stars 84 forks source link

Import of configurable products partially broken #116

Closed dimonixx closed 4 years ago

dimonixx commented 4 years ago

Summary
since the changes in https://github.com/oroinc/orocommerce/blob/a254632a1d0683bc28f50ae6c6b142bc895be26f/src/Oro/Bundle/ProductBundle/Entity/ProductVariantLink.php#L142 and adding the parent variant link to the child import of configurable products is broken if an invalid configurable exists in an import batch.

Steps to reproduce
cli import a csv file with configurable products with at least 1 invalid configurable product

Actual Result none of the products are imported. Following exception is thown: [Doctrine\ORM\ORMInvalidArgumentException] A new entity was found through the relationship 'Oro\Bundle\ProductBundle\Entity\ProductVariantLink#parentProduct'

Expected Result

Details about your environment

anyt commented 4 years ago

Internal ticket id #BB-19380.

anyt commented 4 years ago

Fixed in 3.1.24 (enterprise edition only) and 4.1.6. Thank you!