Closed metareven closed 4 years ago
Hey @metareven
I will need to investigate why you are see what you describe. Watch this space and I will let you know what I find and when a fix is in place.
Nick.
Hey @metareven
I have just put a fix in for another issue and think it may have indirectly fixed what you detail above. Can you try v2.8.2 and verify it works for you. If not, I will continue investigating.
Thanks, Nick.
Hi!
I am trying to use overrides to generate data, but when I log the contents of context.Instance inside my Generate function, and what is actually returned from faker.generate() it is 2 completely different things.
I have a bunch of classes who inherit from a metadata class and I wanted to use overrides to automatically set the fields contained in the metadata class whenever one of its subclasses generated.
This is the code from the function that calls the Generate function:
And this is the code in the override function:
When printing out the objects in the different functions I get this output:
As you can see, the values are completely different, and it also seems like the object inside the generator function does not follow the rules I set when making the faker