Skip to content

Commit 3539e69

Browse files
author
Tom Schlick
authored
Merge pull request #4 from orisintel/fix/relationships-included-bug
use getAttributes() instead of toArray() when creating a record
2 parents 066066d + 2ac01fb commit 3539e69

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)