Skip to content

Conversation

@silviaherguedas
Copy link
Contributor

@silviaherguedas silviaherguedas commented Nov 8, 2022

ISSUE: php-doofinder/97

The documentation for the correct configuration and understanding of the APIs has been updated.

class Item implements ModelInterface
{
const SETTED_FIELDS = ['id', 'df_grouping_id', 'df_group_leader', 'df_manual_boost', 'categories', 'best_price'];
const SETTED_FIELDS = ['title', 'description', 'link', 'image_link', 'availability', 'price', 'sale_price', 'brand', 'gtin', 'mpn'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id field not required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the id is carried by the model itself, this list is a list of possible additional fields that an item may have.
If you expand the model information, you can see the fixed fields shown, among them the id.

@silviaherguedas silviaherguedas merged commit 08e5212 into master Nov 8, 2022
@silviaherguedas silviaherguedas deleted the silvia/feature/documentation_update_v6 branch November 8, 2022 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants