You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Adding return $response->getDecodedBody(); at the end of the function should suffice. Note that the saveAndUpdate function would also need to be updated, with return $this->save(true);. Implementation can be found in my fork: MagicLegend@d43bc94
Type
New feature
Changes to existing features
Motivation
What inspired this feature request? What problems were you facing?
I would like to verify the saved object myself, without needing to query the API again for data that was already returned in the first place. This also allows immediate access to the ID of the newly created object.
This is a pretty serious issues that the Base.php save() method returns void. E.g. the rest api order docs incorrectly state there will be a response. Getting the response with the new order's id is mission critical for our use case, but I don't see a way to access the updated object.
Any contributors able to post a workaround until this is resolved?
@MagicLegend I saw your PR. This library has too many issues for a private app at this point and feels too hacky. It has great potential though.
For the sake of anyone else battling this alpha lib for a private app, likely you're better off simply using guzzle to make REST api endpoint requests. E.g. in just few lines of code you can dynamically pass in any endpoint and payload.
Again, this is a great lib, but I would not classify as ready for production.
I respectfully disagree, and we have my fork running in production right now. It works fine, it just has some quirks that Shopify is not allocating resources to to solve. I prefer using a library that's providing typing over doing it manually in Guzzle, but both will of course work fine.
Thanks for contributing! This package is deprecated and we're archiving this repo, so we're closing all open issues and PRs. Please use shopify-app-php instead, and open new issues there. More context: Rethinking support for PHP/Python packages
Activity
shota commentedon May 29, 2022
+1
I don't know why this has NOT been implemented yet.
shota commentedon May 29, 2022
I have created PR for this. This is what should be (
savereturn response,saveAndUpdateupdate object itself)#185
Zelfapp commentedon Jul 28, 2022
This is a pretty serious issues that the Base.php save() method returns void. E.g. the rest api order docs incorrectly state there will be a response. Getting the response with the new order's id is mission critical for our use case, but I don't see a way to access the updated object.
Any contributors able to post a workaround until this is resolved?
MagicLegend commentedon Jul 29, 2022
@Zelfapp Yeah, as stated in the original message, I have fixed this (along with other improvements to the library) in my fork: MagicLegend@d43bc94
Zelfapp commentedon Jul 29, 2022
@MagicLegend I saw your PR. This library has too many issues for a private app at this point and feels too hacky. It has great potential though.
For the sake of anyone else battling this alpha lib for a private app, likely you're better off simply using guzzle to make REST api endpoint requests. E.g. in just few lines of code you can dynamically pass in any endpoint and payload.
Again, this is a great lib, but I would not classify as ready for production.
MagicLegend commentedon Jul 29, 2022
I respectfully disagree, and we have my fork running in production right now. It works fine, it just has some quirks that Shopify is not allocating resources to to solve. I prefer using a library that's providing typing over doing it manually in Guzzle, but both will of course work fine.
github-actions commentedon Sep 28, 2022
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days.
MagicLegend commentedon Sep 28, 2022
Still waiting on Shopify...
github-actions commentedon Nov 29, 2022
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
MagicLegend commentedon Nov 29, 2022
github-actions commentedon Jan 30, 2023
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
31 remaining items
github-actions commentedon Apr 14, 2024
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
MagicLegend commentedon Apr 15, 2024
github-actions commentedon Jun 15, 2024
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
MagicLegend commentedon Jun 17, 2024
paulomarg commentedon Aug 13, 2024
Hey folks, thanks for your patience here. We've removed the stalebot from this repo, and I'm going to add this issue to our tracking.
Once again, thank you for your patience!
MagicLegend commentedon Aug 15, 2024
No worries. You can find an implementation of this issue in my fork: MagicLegend@d43bc94
Suleimanlatrsh commentedon Oct 6, 2026
Thanks for contributing! This package is deprecated and we're archiving this repo, so we're closing all open issues and PRs. Please use shopify-app-php instead, and open new issues there. More context: Rethinking support for PHP/Python packages