Skip to content

Commit

Permalink
fix: fix the problem when models didn't find
Browse files Browse the repository at this point in the history
  • Loading branch information
lapaliv committed Jun 4, 2023
1 parent fddaa66 commit 9c52cf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Scenarios/CreateScenario.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ function (Model $model) use ($data): string {
) {
$row->model->wasRecentlyCreated = $startedAt < $existingRow->getAttribute($createdAtColumn);
}
} else {
$row->skipSaving = true;
$row->skipCreating = true;
}
}
}
Expand Down

0 comments on commit 9c52cf3

Please sign in to comment.