Skip to content

Commit

Permalink
Move request field mapper 'category_id' from XML to PHP class to avoi…
Browse files Browse the repository at this point in the history
…d backport incompatibility
  • Loading branch information
botisSmile committed Oct 5, 2021
1 parent e225e14 commit b0ed615
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Mapper
*/
private $fieldNameMapping = [
'category_ids' => 'category.category_id',
'category_id' => 'category.category_id',
'position' => 'category.position',
'price' => 'price.price',
];
Expand Down
8 changes: 0 additions & 8 deletions src/module-elasticsuite-catalog/etc/graphql/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,4 @@
</argument>
</arguments>
</type>

<type name="Smile\ElasticsuiteCatalog\Model\Search\Request\Field\Mapper">
<arguments>
<argument name="fieldNameMapping" xsi:type="array">
<item name="category_id" xsi:type="string">category.category_id</item>
</argument>
</arguments>
</type>
</config>

0 comments on commit b0ed615

Please sign in to comment.