# $orderPage->changeStorage()

> Moves or copies the model to a new storage instance/type

- Source: `src/Cms/ModelWithContent.php#L119` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/ModelWithContent.php#L119>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$orderPage->changeStorage(Kirby\Content\Storage|string $toStorage, bool $copy = false): Kirby\Cms\ModelWithContent
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$toStorage` | `Kirby\Content\Storage\|string` | `–` |
| `$copy` | `bool` | `false` |

## Return type

`Kirby\Cms\ModelWithContent`

## Parent class

`Wagnerwagner\Merx\OrderPage` inherited from `Kirby\Cms\ModelWithContent`
