You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I encounter this issue Maximum retries of 10000 reached without finding a unique value. even if I specify all attributes.
As I understand regarding to the source code of the \Zenstruck\Foundry\ModelFactory::new() method, the getDefaults() method is always called, even if attributes are passed to the method, which leads to call faker and reach the maximum retries to find a value.
Do I miss something?
Is there a way to not to call the getDefaults() methods when attributes are defined ?
Thank you,
Regards
The text was updated successfully, but these errors were encountered:
Hi,
and thank you for this library :)
I'm using it in a Symfony project, with Behat as test runner.
Given the following
ModelFactory
:I'have a couple of Behat Scenario that call that Factory to create new entities :
But I encounter this issue
Maximum retries of 10000 reached without finding a unique value.
even if I specify all attributes.As I understand regarding to the source code of the
\Zenstruck\Foundry\ModelFactory::new()
method, thegetDefaults()
method is always called, even if attributes are passed to the method, which leads to call faker and reach themaximum retries to find a value
.Do I miss something?
Is there a way to not to call the
getDefaults()
methods when attributes are defined ?Thank you,
Regards
The text was updated successfully, but these errors were encountered: