Here’s is my case.
const existingPost = await factory(Post)().create();
const comment = await factory(Comment)().create({post: existingPost});
When I pass the existing post via the override params, it will attach the existing post to the comment, but the comment always creates a random post by default, which I don’t want. I think we should check if the override params don’t contain the association, then create the default; that will make sense.
Can anyone help me on this? Thank you

Here’s is my case.
Expectation: Create a comment with the existing postReality: Create a comment with the existing post and create a random post from the comment factoryPost factory
When I pass the existing post via the override params, it will attach the existing post to the comment, but the comment always creates a random post by default, which I don’t want. I think we should check if the override params don’t contain the association, then create the default; that will make sense.
Can anyone help me on this? Thank you