Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAC-883: add entity mapping for parent_sku #29

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion symfony/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<parameters>
<parameter key="import_product_variant.param.sku.column.name" type="constant">TechDivision\Import\Product\Variant\Utils\ColumnKeys::VARIANT_CHILD_SKU</parameter>
<parameter key="import_product_variant.param.parent.sku.column.name" type="constant">TechDivision\Import\Product\Variant\Utils\ColumnKeys::VARIANT_PARENT_SKU</parameter>
</parameters>

<services>
Expand Down Expand Up @@ -181,6 +182,10 @@
<argument type="service" id="import_product.processor.product.bunch"/>
<argument type="string">%import_product_variant.param.sku.column.name%</argument>
</service>
<service id="import_product_variant.observer.parent.sku.entity.id.mapping" class="TechDivision\Import\Product\Observers\GenericSkuEntityIdMappingObserver">
<argument type="service" id="import_product.processor.product.bunch"/>
<argument type="string">%import_product_variant.param.parent.sku.column.name%</argument>
</service>
<service id="import_product_variant.observer.clean.up.product.variant" class="TechDivision\Import\Product\Variant\Observers\CleanUpVariantProductRelationObserver">
<argument type="service" id="import_product_variant.processor.product.variant"/>
</service>
Expand Down Expand Up @@ -208,6 +213,9 @@
| The DI configuration for the composite observers of the add-update operation.
|-->
<service id="import_product_variant.observer.composite.add_update" class="TechDivision\Import\Observers\GenericCompositeObserver">
<call method="addObserver">
<argument id="import_product_variant.observer.parent.sku.entity.id.mapping" type="service"/>
</call>
<call method="addObserver">
<argument id="import_product_variant.observer.sku.entity.id.mapping" type="service"/>
</call>
Expand All @@ -234,4 +242,4 @@

</services>

</container>
</container>
Loading