-
Notifications
You must be signed in to change notification settings - Fork 80
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
Faker not returning new randomized data #86
Comments
Yep, the problem is the closure. Use without the closure and it works. |
In the meantime, you can use release 2.1 |
+1 |
The problem is actually because of changed design: "Get the generator stuff out of the Factory and Builder classes" as added FactoriesLoader::normalizeDefinitions is resolving user defined Closures only once after loading factories and not before building new entity. |
+1 - this issue is really annoying. Is it possible to just call the factory method every time I want to create a user? That way the data is randomised on each call - rather than just once? i.e. it currently doesnt just affect |
@h-collector's temporary solution works: load 2.1 in your composer.json:
|
The issue with php functions like |
The following code throws constraint violations on
email
andusername
, but works when only 1 row is generated:Seems like it isn't generating a new value on each faker call...?
The text was updated successfully, but these errors were encountered: