Skip to content

Commit

Permalink
Merge pull request #6 from dylanharbour/model-save-bug-fix
Browse files Browse the repository at this point in the history
Put Back Model Save which was removed from saveStateHistory
  • Loading branch information
dylanharbour authored Aug 5, 2019
2 parents 9cf6791 + 79a56a1 commit f21d81e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Subscribers/WorkflowSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public function enteredEvent(Event $event)
$from = implode(',', $event->getTransition()->getFroms());
$to = implode(',', $event->getTransition()->getTos());
$model = $event->getSubject();
$model->save();

if (method_exists($model, 'saveStateHistory')) {
$model->saveStateHistory([
Expand Down

0 comments on commit f21d81e

Please sign in to comment.