This resolves #97. Currently, the command for using existing data rather than new data is model:factoryName, as compared to the default factory:factoryName. If there is no existing data, an entry will be created in the same fashion as factory:factoryName.
This means that, given the following conditions (and assuming we have our relations correctly defined):
This resolves #97. Currently, the command for using existing data rather than new data is
model:factoryName
, as compared to the defaultfactory:factoryName
. If there is no existing data, an entry will be created in the same fashion asfactory:factoryName
.This means that, given the following conditions (and assuming we have our relations correctly defined):
then
Factory::create('post_with_existing_user');
Will produce a result identical to