File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
ConfigurableProductDataExporter/etc
DataExporter/Model/Indexer
ProductVariantDataExporter/etc Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 22
22
</filter >
23
23
<link-source name =" catalog_product_entity" link-type =" inner" alias =" simple_product" >
24
24
<using glue =" and" >
25
- <condition attribute =" type_id" operator =" eq " type =" variable" >'simple' OR 'virtual'</condition >
25
+ <condition attribute =" type_id" operator =" in " type =" variable" >'simple', 'virtual'</condition >
26
26
<condition attribute =" entity_id" operator =" eq" type =" identifier" >product_id</condition >
27
27
</using >
28
28
</link-source >
39
39
<link-source name =" catalog_product_entity" link-type =" inner" alias =" simple_product" >
40
40
<attribute name =" entity_id" alias =" productId" group =" true" />
41
41
<using glue =" and" >
42
- <condition attribute =" type_id" operator =" eq " type =" variable" >'simple' OR 'virtual'</condition >
42
+ <condition attribute =" type_id" operator =" in " type =" variable" >'simple', 'virtual'</condition >
43
43
<condition attribute =" entity_id" operator =" eq" type =" identifier" >product_id</condition >
44
44
</using >
45
45
</link-source >
Original file line number Diff line number Diff line change @@ -65,10 +65,11 @@ public function getAllIds(FeedIndexMetadata $metadata): ?\Generator
65
65
public function getAffectedIds (FeedIndexMetadata $ metadata , array $ ids ): array
66
66
{
67
67
$ resolvers = $ this ->affectedIdsResolverPool ->getIdsResolversForFeed ($ metadata ->getFeedName ());
68
+ $ affectedIds = [];
68
69
foreach ($ resolvers as $ resolver ) {
69
- $ ids = array_merge ( $ ids , $ resolver ->getAllAffectedIds ($ ids) );
70
+ $ affectedIds [] = $ resolver ->getAllAffectedIds ($ ids );
70
71
}
71
- return $ ids ;
72
+ return array_unique ( array_merge ( $ ids, ... $ affectedIds )) ;
72
73
}
73
74
74
75
/**
Original file line number Diff line number Diff line change 22
22
</filter >
23
23
<link-source name =" catalog_product_entity" link-type =" inner" alias =" simple_product" >
24
24
<using glue =" and" >
25
- <condition attribute =" type_id" operator =" eq " type =" variable" >'simple' OR 'virtual'</condition >
25
+ <condition attribute =" type_id" operator =" in " type =" variable" >'simple', 'virtual'</condition >
26
26
<condition attribute =" entity_id" operator =" eq" type =" identifier" >product_id</condition >
27
27
</using >
28
28
</link-source >
39
39
<link-source name =" catalog_product_entity" link-type =" inner" alias =" simple_product" >
40
40
<attribute name =" entity_id" alias =" productId" group =" true" />
41
41
<using glue =" and" >
42
- <condition attribute =" type_id" operator =" eq " type =" variable" >'simple' OR 'virtual'</condition >
42
+ <condition attribute =" type_id" operator =" in " type =" variable" >'simple', 'virtual'</condition >
43
43
<condition attribute =" entity_id" operator =" eq" type =" identifier" >product_id</condition >
44
44
</using >
45
45
</link-source >
You can’t perform that action at this time.
0 commit comments