factory-go icon indicating copy to clipboard operation
factory-go copied to clipboard

Allow parent to be passed into create methods

Open mnussbaum opened this issue 3 years ago • 0 comments

First off just want to say thanks, this project has been super helpful to me as I've been testing a DB backed application that features a complex graph of related models.

One feature that would be very helpful is if I could pass an explicit parent into a factory create method. This would let me use a factory as both a subfactory in a chain of related factories and in isolation to create a new instance of a model to add to an existing chain of related models.

Let me know what you think!

mnussbaum avatar Feb 16 '22 05:02 mnussbaum