Skip to content

Commit b54febf

Browse files
authored
Merge pull request #4 from inmanturbo/main
Return null if no model
2 parents b25d5a1 + 23be2ab commit b54febf

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
All notable changes to `ecow` will be documented in this file.
44

5+
## v1.0.3 - 2024-08-09
6+
7+
### What's Changed
8+
9+
* support using Illuminate\Database\Eloquent\Concerns\HasUuids as primary key by @inmanturbo in https://github.com/inmanturbo/ecow/pull/3
10+
11+
**Full Changelog**: https://github.com/inmanturbo/ecow/compare/v1.0.2...v1.0.3
12+
513
## v1.0.2 - 2024-08-08
614

715
### What's Changed
816

9-
* Remove unused directories leftover form the skeleton by @inmanturbo in https://github.com/inmanturbo/ecow/pull/2
17+
* Remove unused directories leftover from the skeleton by @inmanturbo in https://github.com/inmanturbo/ecow/pull/2
1018

1119
**Full Changelog**: https://github.com/inmanturbo/ecow/compare/v1.0.1...v1.0.2
1220

src/Ecow.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ public function getModelGuid(mixed $model): string
120120

121121
public function retrieveModel(mixed $model): mixed
122122
{
123+
if (! $model) {
124+
return null;
125+
}
126+
123127
$model = clone $model;
124128

125129
$attributes = ($snapshot = $this->snapshots($model)

0 commit comments

Comments
 (0)