Skip to content

Commit

Permalink
doc: Fix range call instead of many (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
ternel authored Aug 24, 2024
1 parent 41f15ca commit 33d5870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ The following assumes the ``Post`` entity has a one-to-many relationship with ``
PostFactory::createMany(6, ['comments' => CommentFactory::new()->many(4)]);

// Example 3: Create 6 Posts each with between 0 and 10 Comments
PostFactory::createMany(6, ['comments' => CommentFactory::new()->many(0, 10)]);
PostFactory::createMany(6, ['comments' => CommentFactory::new()->range(0, 10)]);

Many-to-Many
............
Expand Down Expand Up @@ -1131,7 +1131,7 @@ You can simply use your factories and stories right within your fixture files:
'tags' => TagFactory::randomRange(0, 6),

// each Post will have between 0 and 10 Comment's that are created new
'comments' => CommentFactory::new()->many(0, 10),
'comments' => CommentFactory::new()->range(0, 10),
];
});
}
Expand Down

0 comments on commit 33d5870

Please sign in to comment.