Skip to content

Commit

Permalink
Merge pull request #4 from orisintel/fix/relationships-included-bug
Browse files Browse the repository at this point in the history
use getAttributes() instead of toArray() when creating a record
  • Loading branch information
Tom Schlick authored Jul 29, 2019
2 parents 066066d + 2ac01fb commit 3539e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function recordChanges(int $event_type, $model) : void
$changes = $model->getDirty();
break;
case EventType::CREATED:
$changes = $model->toArray();
$changes = $model->getAttributes();
break;
case EventType::RESTORED:
$changes = $model->getChanges();
Expand Down

0 comments on commit 3539e69

Please sign in to comment.