Closed mmarkell closed 4 years ago
I think you need to add reference only on one side and then everything will work
Like this
User.yml
entity: User
items:
user{1..2000}:
...
entity: Group
items:
group{1..2000}:
...
UserGroup.yml
entity: UserGroup
items:
userGroups{1..2000}:
user: "@user($current)"
group: "@group($current)"
status: "{{random.number(4)}}"
Wow that worked...thank you so much!
Probably more of a question than a bug, but I guess we'll see...
I am trying to create fixtures for a table that has several ManyToOne relations.
UserGroup.ts
User.ts
and then the same for
Group
.I am trying to populate the fixtures with:
User.yml
UserGroup.yml
But when I run the cli, I get the following error:
What am I doing wrong? I assume this is because of a circular reference between UserGroups and the User/Group entities, but I don't see how else I can create a relationship between the entities.