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
Helly Simon. Congrats on the lib. I've been using it since 2016.
Today I migrated to the 4.3.0 version as I am creating new tests in my application.
Right now I have the following models:
In my test, I try to create all the models but, since they all are associated with testUser2, then it gets an error for unique fields (since it tries to recreate it 4 times).
So my questions are:
Is there any way I can define a "do not create a parent if it is already created" behaviour?
If I remove the factory.assoc('testUser2', 'id') from all the children and try to set a factory.assocMany in the parent, how can I define the different models I want to create? eg: factory.assoc('videoIncidentSameTime', 'videoWithIncident', 'videoNoIncident').
The text was updated successfully, but these errors were encountered:
Helly Simon. Congrats on the lib. I've been using it since 2016.
Today I migrated to the 4.3.0 version as I am creating new tests in my application.
Right now I have the following models:
In my test, I try to create all the models but, since they all are associated with testUser2, then it gets an error for unique fields (since it tries to recreate it 4 times).
So my questions are:
The text was updated successfully, but these errors were encountered: