Skip to content

Commit dfa0d22

Browse files
committed
Merge remote-tracking branch 'origin/master' into collection-importer
2 parents d3c3568 + 5a35a1b commit dfa0d22

File tree

6 files changed

+61
-53
lines changed

6 files changed

+61
-53
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v7.13.5 (2025-02-07)
4+
5+
### What's fixed
6+
* Prevent error when model can't be found #655 by @duncanmcclean
7+
8+
9+
310
## v7.13.4 (2025-01-06)
411

512
### What's fixed

database/migrations/2021_05_04_162552_create_runway_uris_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function up()
1717
$table->id();
1818
$table->string('uri');
1919
$table->string('model_type');
20-
$table->bigInteger('model_id');
20+
$table->string('model_id', 36);
2121
$table->timestamps();
2222
});
2323
}

docs/blueprints.md

Lines changed: 49 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -18,56 +18,57 @@ Runway supports pretty much ALL fieldtypes available in Statamic, including Bard
1818

1919
For simplicity, here's a table matching Statamic's Core fieldtypes with the correct column types:
2020

21-
**Fieldtype**| **Column Type** |**Notes**
22-
-----|---------------------------|-----
23-
[Array](https://statamic.dev/fieldtypes/array)| `json` |
24-
Asset Container| `string`/`json` |
25-
[Assets](https://statamic.dev/fieldtypes/assets)| `string`/`json` |
26-
[Bard](https://statamic.dev/fieldtypes/bard)| `string`/`json` |If 'Display HTML' is `true`, then Bard will save as a `string`.
27-
[Button Group](https://statamic.dev/fieldtypes/button_group)| `string` |
28-
[Checkboxes](https://statamic.dev/fieldtypes/checkboxes)| `json` |
29-
[Code](https://statamic.dev/fieldtypes/code)| `string` |
30-
[Collections](https://statamic.dev/fieldtypes/collections)| `string`/`json` |If 'Max items' is `1`, column type should be `string`. Otherwise, `json` is what you want.
31-
[Color](https://statamic.dev/fieldtypes/color)| `string` |
32-
[Date](https://statamic.dev/fieldtypes/date)| `string`/`range` |Format is specified field configuration options. Ranges are should be stored as json.
33-
[Entries](https://statamic.dev/fieldtypes/entries)| `string`/`json` |If 'Max items' is `1`, column type should be `string`. Otherwise, `json` is what you want.
34-
Float| `float` |
35-
[Grid](https://statamic.dev/fieldtypes/grid)| `json` |
36-
[Group](https://statamic.dev/fieldtypes/group)| `json` |
37-
[Hidden](https://statamic.dev/fieldtypes/hidden)| `string` |
38-
[HTML](https://statamic.dev/fieldtypes/html)| - |UI only
39-
[Icon](https://statamic.dev/fieldtypes/icon)| `string` |
40-
[Integer](https://statamic.dev/fieldtypes/integer)| `integer` |
41-
[Link](https://statamic.dev/fieldtypes/link)| `json` |
42-
[List](https://statamic.dev/fieldtypes/list)| `json` |
43-
[Markdown](https://statamic.dev/fieldtypes/markdown)| `string` |
44-
[Navs](https://statamic.dev/fieldtypes/navs)| `string`/`json` |
45-
[Radio](https://statamic.dev/fieldtypes/radio)| `string` |
46-
[Range](https://statamic.dev/fieldtypes/range)| `string` |
47-
[Replicator](https://statamic.dev/fieldtypes/replicator)| `json` |
48-
[Revealer](https://statamic.dev/fieldtypes/revealer)| - |UI only
49-
[Section](https://statamic.dev/fieldtypes/section)| - |UI only
21+
**Fieldtype**| **Column Type** |**Notes**
22+
-----|--------------------------|-----
23+
[Array](https://statamic.dev/fieldtypes/array)| `json` |
24+
Asset Container| `string`/`json` |
25+
[Assets](https://statamic.dev/fieldtypes/assets)| `string`/`json` |
26+
[Bard](https://statamic.dev/fieldtypes/bard)| `string`/`json` |If 'Display HTML' is `true`, then Bard will save as a `string`.
27+
[Button Group](https://statamic.dev/fieldtypes/button_group)| `string` |
28+
[Checkboxes](https://statamic.dev/fieldtypes/checkboxes)| `json` |
29+
[Code](https://statamic.dev/fieldtypes/code)| `string` |
30+
[Collections](https://statamic.dev/fieldtypes/collections)| `string`/`json` |If 'Max items' is `1`, column type should be `string`. Otherwise, `json` is what you want.
31+
[Color](https://statamic.dev/fieldtypes/color)| `string` |
32+
[Date](https://statamic.dev/fieldtypes/date)| `string`/`range` |Format is specified field configuration options. Ranges are should be stored as json.
33+
[Dictionary](https://statamic.dev/fieldtypes/dictionary)|`string`/`json` |If 'Max items' is `1`, column type should be `string`. Otherwise, `json` is what you want.
34+
[Entries](https://statamic.dev/fieldtypes/entries)| `string`/`json` |If 'Max items' is `1`, column type should be `string`. Otherwise, `json` is what you want.
35+
[Form](https://statamic.dev/fieldtypes/form)| `string`/`json` |If 'Max items' is `1`, column type should be `string`. Otherwise, `json` is what you want.
36+
[Grid](https://statamic.dev/fieldtypes/grid)| `json` |
37+
[Group](https://statamic.dev/fieldtypes/group)| `json` |
38+
[Hidden](https://statamic.dev/fieldtypes/hidden)| `string` |
39+
[HTML](https://statamic.dev/fieldtypes/html)| - |UI only
40+
[Icon](https://statamic.dev/fieldtypes/icon)| `string` |
41+
[Integer](https://statamic.dev/fieldtypes/integer)| `integer` |
42+
[Link](https://statamic.dev/fieldtypes/link)| `json` |
43+
[List](https://statamic.dev/fieldtypes/list)| `json` |
44+
[Markdown](https://statamic.dev/fieldtypes/markdown)| `string` |
45+
[Navs](https://statamic.dev/fieldtypes/navs)| `string`/`json` |
46+
[Radio](https://statamic.dev/fieldtypes/radio)| `string` |
47+
[Range](https://statamic.dev/fieldtypes/range)| `string` |
48+
[Replicator](https://statamic.dev/fieldtypes/replicator)| `json` |
49+
[Revealer](https://statamic.dev/fieldtypes/revealer)| - |UI only
50+
[Section](https://statamic.dev/fieldtypes/section)| - |UI only
5051
[Select](https://statamic.dev/fieldtypes/select)| `string`/`integer`/`json` |
51-
[Sites](https://statamic.dev/fieldtypes/sites)| `string`/`json` |
52-
[Slug](https://statamic.dev/fieldtypes/slug)| `string` |
53-
[Structures](https://statamic.dev/fieldtypes/structures)| `json` |
54-
[Table](https://statamic.dev/fieldtypes/table)| `json` |
55-
[Tags](https://statamic.dev/fieldtypes/tags)| `json` |
56-
[Taxonomies](https://statamic.dev/fieldtypes/taxonomies)| `string`/`json` |
57-
[Template](https://statamic.dev/fieldtypes/template)| `string` |
58-
[Terms](https://statamic.dev/fieldtypes/terms)| `string`/`json` |
59-
[Text](https://statamic.dev/fieldtypes/text)| `string` |
60-
[Textarea](https://statamic.dev/fieldtypes/textarea)| `string` |
61-
[Time](https://statamic.dev/fieldtypes/time)| `string` |
62-
[Toggle](https://statamic.dev/fieldtypes/toggle)| `boolean` |
63-
[User Groups](https://statamic.dev/fieldtypes/user-groups)| `string`/`json` |When the resource is the `User` model, you don't need to create a column for this fieldtype.
64-
[User Roles](https://statamic.dev/fieldtypes/user-roles)| `string`/`json` |When the resource is the `User` model, you don't need to create a column for this fieldtype.
52+
[Sites](https://statamic.dev/fieldtypes/sites)| `string`/`json` |
53+
[Slug](https://statamic.dev/fieldtypes/slug)| `string` |
54+
[Spacer](https://statamic.dev/fieldtypes/spacer)| - |UI only
55+
[Structures](https://statamic.dev/fieldtypes/structures)| `json` |
56+
[Table](https://statamic.dev/fieldtypes/table)| `json` |
57+
[Tags](https://statamic.dev/fieldtypes/tags)| `json` |
58+
[Taxonomies](https://statamic.dev/fieldtypes/taxonomies)| `string`/`json` |
59+
[Template](https://statamic.dev/fieldtypes/template)| `string` |
60+
[Terms](https://statamic.dev/fieldtypes/terms)| `string`/`json` |
61+
[Text](https://statamic.dev/fieldtypes/text)| `string` |
62+
[Textarea](https://statamic.dev/fieldtypes/textarea)| `string` |
63+
[Time](https://statamic.dev/fieldtypes/time)| `string` |
64+
[Toggle](https://statamic.dev/fieldtypes/toggle)| `boolean` |
65+
[User Groups](https://statamic.dev/fieldtypes/user-groups)| `string`/`json` |When the resource is the `User` model, you don't need to create a column for this fieldtype.
66+
[User Roles](https://statamic.dev/fieldtypes/user-roles)| `string`/`json` |When the resource is the `User` model, you don't need to create a column for this fieldtype.
6567
[Users](https://statamic.dev/fieldtypes/users)| `string`/`integer`/`json` |
66-
[Video](https://statamic.dev/fieldtypes/video)| `string` |
67-
Width| `integer` |
68-
[YAML](https://statamic.dev/fieldtypes/yaml)| `string` |
69-
[Belongs To](/fieldtypes#belongsto-fieldtype)| `bigInteger` |Usually `bigInteger` or `integer` but depends on personal preference.
70-
68+
[Video](https://statamic.dev/fieldtypes/video)| `string` |
69+
[Width](https://statamic.dev/fieldtypes/width)| `integer` |
70+
[YAML](https://statamic.dev/fieldtypes/yaml)| `string` |
71+
7172
## Eloquent Relationships
7273

7374
Runway provides two fieldtypes to let you manage Eloquent Relationships within Statamic:

docs/upgrade-guides/v6-to-v7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ BlogPost::class => [
6666

6767
- [v3.x to v4.0](/upgrade-guides/v3-x-to-v4-0)
6868
- [v4.x to v5.0](/upgrade-guides/v4-x-to-v5-0)
69-
- [v6.x to v6.0](/upgrade-guides/v5-x-to-v6-0)
69+
- [v5.x to v6.0](/upgrade-guides/v5-x-to-v6-0)
7070

7171
---
7272

docs/upgrade-guides/v7-to-v8.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ The `runway:generate-migrations` command has been removed in favour of the new `
8989

9090
- [v3.x to v4.0](/upgrade-guides/v3-x-to-v4-0)
9191
- [v4.x to v5.0](/upgrade-guides/v4-x-to-v5-0)
92-
- [v6.x to v6.0](/upgrade-guides/v5-x-to-v6-0)
93-
- [v7.x to v8.0](/upgrade-guides/v7-to-v8)
92+
- [v5.x to v6.0](/upgrade-guides/v5-x-to-v6-0)
93+
- [v6.x to v7.0](/upgrade-guides/v6-to-v7)
9494

9595
---
9696

src/Relationships.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function saveHasManyRelationship(Field $field, Relation $relationship,
5959
collect($values)
6060
->reject(fn ($id) => $models->pluck($relatedResource->primaryKey())->contains($id))
6161
->reject(fn ($id) => in_array($id, $deleted))
62-
->each(fn ($id) => $relatedResource->model()->find($id)->update([
62+
->each(fn ($id) => $relatedResource->model()->find($id)?->update([
6363
$relationship->getForeignKeyName() => $this->model->getKey(),
6464
]));
6565

0 commit comments

Comments
 (0)