Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support enums in findBy() calls #9453

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

derrabus
Copy link
Member

Fixes #9372 (comment)

This PR allows to use enums in findBy() calls:

$cardRepository->findBy(['suit' => Suit::Clubs]);

@derrabus derrabus force-pushed the improvement/enum-in-findby branch from 1d3485f to 9ebd07a Compare January 31, 2022 18:44
@derrabus derrabus requested a review from greg0ire January 31, 2022 18:45
@derrabus derrabus merged commit aa1dd88 into doctrine:2.12.x Jan 31, 2022
@derrabus derrabus deleted the improvement/enum-in-findby branch January 31, 2022 22:03
derrabus added a commit to derrabus/orm that referenced this pull request Jan 31, 2022
* 2.12.x:
  Support enums in findBy() calls (doctrine#9453)
  Streamline cache creation in tests (doctrine#9451)
n-e-m-a-nj-a pushed a commit to n-e-m-a-nj-a/orm that referenced this pull request Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants