-
Notifications
You must be signed in to change notification settings - Fork 44
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
Does this sdk work with custom entities? #50
Comments
Hi @almare Any help would welcome :) |
Any progress with custom associations? Use case: A shopware plugin adds a new entity and an association to an existing entity. if you wan to load the shopware entity together with the new association it not shows up in the result: $orderRepository = RepositoryFactory::create(OrderDefinition::ENTITY_NAME);
$criteria = new Criteria();
$criteria->addAssociation('custom_entity');
$result = $orderRepository->search($criteria, $context); The custom association should show up inside the
But this doesn't work because of the default
If you change this to just application/json the response contains the extension data but the sdk cannot parse it correctly.
|
The reason for the missing associations is that the sdk only considers the shopware-php-sdk/src/Hydrate/EntityHydrator.php Lines 83 to 93 in 772876c
And because of the |
Hi! Same problem here. |
I tried to import my products which uses custom entities but without success. Then I tried to get a created product with my custom association also without success. So my question is does this sdk support custom extensions at all? I didn't find any documentation about that topic. Thanks
The text was updated successfully, but these errors were encountered: