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

updateAddress expects all address attributes #42

Open
de-raaf-media opened this issue Nov 29, 2023 · 0 comments
Open

updateAddress expects all address attributes #42

de-raaf-media opened this issue Nov 29, 2023 · 0 comments

Comments

@de-raaf-media
Copy link

Hi there,

In the documentation I see the following code for updating an existing address:

$post->updateAddress($address, $new_attributes);

So I added a variable to update the street address. Like this:

$new_attributes = [
  'street'     => '123 Update Drive',
];

Is it correct that this does not work and I need to add the existing attributes as well? I now merge the existing address array with my new_attributes array. Is that how I should do it?

Mark

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

1 participant