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

Deprecation Log Entries and Unmapped Attributes in MediaThumbnailEntity - shopware-php-sdk v2.0.0 Compatibility Issue #85

Open
ThomasAKaestner opened this issue Jan 24, 2024 · 1 comment

Comments

@ThomasAKaestner
Copy link

I am encountering deprecation log entries when using the latest version (v2.0.0) of the vienthuong/shopware-php-sdk with Shopware version 6.5.8.2. The issue arises specifically when making the following call:
$criteria = new Criteria(); $criteria->addFilter(new EqualsFilter('productNumber', $sku)); $criteria->addAssociations(['media']);
The deprecation log entries include messages like:

Deprecated: Creation of dynamic property Vin\ShopwareSdk\Data\Entity\MediaThumbnail\MediaThumbnailEntity::$path is deprecated in /var/task/vendor/vin-sw/shopware-sdk/src/Data/Entity/Entity.php on line 40
Here are more examples of the debug message:
Bildschirmfoto 2024-01-24 um 10 58 40

It appears that Shopware has released additional attributes to their API, which are not properly mapped in the Vin\ShopwareSdk\Data\Entity\Media\MediaEntity. The missing attribute is not the problem here. The problem is in my opinion that it is logged as an deprecated attribute. Could we instead please ignore this attribute?

@htuscher
Copy link

htuscher commented Aug 1, 2024

Will be solved by #91

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

No branches or pull requests

2 participants