Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Fix database factory error for negative count values #15779

Merged
merged 1 commit into from
Oct 6, 2016
Merged

[5.3] Fix database factory error for negative count values #15779

merged 1 commit into from
Oct 6, 2016

Conversation

srmklive
Copy link
Contributor

@srmklive srmklive commented Oct 6, 2016

Add further checks to issue corrected in #15764. The issue i found was if i provide a negative number to factory method like factor(App\User::class, -1), Laravel will create three new records for User. Refer to the screenshot below.

screenshot from 2016-10-06 10 47 01

This PR corrects the issue for providing negative numbers for factory method.

@taylorotwell taylorotwell merged commit 62cf7cd into laravel:5.3 Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants