Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 9e5a4ed

Browse files
Merge pull request #38 from aerni/fix/data-hydration
Fix Entry data hydration
2 parents 7623fc5 + c7a141b commit 9e5a4ed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Synthesizers/EntryCollectionSynthesizer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public function hydrate($values)
4040
$entry = Entry::make()
4141
->id($value['id'])
4242
->slug($value['slug'] ?? null)
43-
->collection($value['collection'] ?? null);
43+
->collection($value['collection'] ?? null)
44+
->data($value['data']);
4445

4546
if ($value['date']) {
4647
$entry->date($value['date'] ?? null);

src/Synthesizers/EntrySynthesizer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function hydrate($value)
3232
$entry = Entry::make()
3333
->id($value['id'])
3434
->slug($value['slug'] ?? null)
35-
->collection($value['collection'] ?? null);
35+
->collection($value['collection'] ?? null)
36+
->data($value['data']);
3637

3738
if ($value['date']) {
3839
$entry->date($value['date'] ?? null);

0 commit comments

Comments
 (0)