Skip to content

Return address record when saving an address instead of true or false #2508

Answered by lukeholder
aloco asked this question in Ideas
Discussion options

You must be logged in to vote

All save methods in Craft and Craft Commerce services return true and false only at the moment.

What would you like returned? You still have reference to the address model that you passed to saveAddress($address) and if it was saved, it will have the new record ID added to it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aloco
Comment options

Answer selected by lukeholder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants