Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add randomRangeOrCreate method#932

Merged
nikophil merged 3 commits into
zenstruck:2.xfrom
elliotbruneel:feat/random-range-or-create
Jun 16, 2025
Merged

feat: add randomRangeOrCreate method#932
nikophil merged 3 commits into
zenstruck:2.xfrom
elliotbruneel:feat/random-range-or-create

Conversation

@elliotbruneel
Copy link
Copy Markdown
Contributor

@elliotbruneel elliotbruneel commented Jun 5, 2025

Hello,

It would be helpful to have a randomRangeOrCreate method.

In some cases, we want to use randomRange without having to manually check if the required objects already exist or peristence is available.

@elliotbruneel elliotbruneel force-pushed the feat/random-range-or-create branch 7 times, most recently from 2b5acd5 to 4e0716f Compare June 6, 2025 14:38
@elliotbruneel elliotbruneel force-pushed the feat/random-range-or-create branch from 4e0716f to 58d2e67 Compare June 6, 2025 14:42
Copy link
Copy Markdown
Member

@nikophil nikophil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @elliotbruneel

some minor changes and we're good to go 👌

thanks!

(please rebase, the CI should be green again)

Comment thread docs/index.rst
Comment thread tests/Integration/Persistence/GenericFactoryTestCase.php Outdated
@nikophil
Copy link
Copy Markdown
Member

thanks @elliotbruneel !

@nikophil nikophil merged commit 56161cc into zenstruck:2.x Jun 16, 2025
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants