Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [7.0.2] - 2022-11-08
### Changed
- Documentation update

## [7.0.1] - 2022-10-11
### Changed
- Fixed error in readme files
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder/php-doofinder",
"version": "7.0.1",
"version": "7.0.2",
"type": "library",
"description": "Doofinder PHP API Client",
"keywords": [
Expand Down
23 changes: 14 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/classes/Doofinder-Management-Model-Item.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ <h3 id="toc">
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/Doofinder-Management-Model-Item.html#constant_SETTED_FIELDS">SETTED_FIELDS</a>
<span>
&nbsp;= [&#039;id&#039;, &#039;df_grouping_id&#039;, &#039;df_group_leader&#039;, &#039;df_manual_boost&#039;, &#039;categories&#039;, &#039;best_price&#039;] </span>
&nbsp;= [&#039;title&#039;, &#039;description&#039;, &#039;link&#039;, &#039;image_link&#039;, &#039;availability&#039;, &#039;price&#039;, &#039;sale_price&#039;, &#039;brand&#039;, &#039;gtin&#039;, &#039;mpn&#039;] </span>
</dt>
<dd></dd>

Expand Down Expand Up @@ -303,7 +303,7 @@ <h4 class="phpdocumentor-element__name" id="constant_SETTED_FIELDS">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">SETTED_FIELDS</span>
= <span class="phpdocumentor-signature__default-value">[&#039;id&#039;, &#039;df_grouping_id&#039;, &#039;df_group_leader&#039;, &#039;df_manual_boost&#039;, &#039;categories&#039;, &#039;best_price&#039;]</span>
= <span class="phpdocumentor-signature__default-value">[&#039;title&#039;, &#039;description&#039;, &#039;link&#039;, &#039;image_link&#039;, &#039;availability&#039;, &#039;price&#039;, &#039;sale_price&#039;, &#039;brand&#039;, &#039;gtin&#039;, &#039;mpn&#039;]</span>
</code>


Expand Down
2 changes: 1 addition & 1 deletion src/Management/Model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
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.


/**
* @var string
Expand Down
Loading