Setting up test relations
I want to create some dummy data for my database for integration testing. Im not sure how to do relations right.
This is my user entity. I create some dummy users and dogs with bogus but how do i actually link them?
Here is my dog generation method:
1 Reply
You can use the dogs generator to generate the dogs for the user
Or you can do it in two steps: generate users, add them to the database which will give you their IDs, then use a random user ID for the dog generator