Skip to content

Commit 2ac01fb

Browse files
author
Tom Schlick
authored
use getAttributes() instead of toArray() when creating a record
1 parent 066066d commit 2ac01fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function recordChanges(int $event_type, $model) : void
2626
$changes = $model->getDirty();
2727
break;
2828
case EventType::CREATED:
29-
$changes = $model->toArray();
29+
$changes = $model->getAttributes();
3030
break;
3131
case EventType::RESTORED:
3232
$changes = $model->getChanges();

0 commit comments

Comments
 (0)