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

Use class map name when querying event class #476

Conversation

maartenpaauw
Copy link
Contributor

When using an event_class_map and querying ->whereEvent(...), all given events should be mapped to their corresponding value before querying the database.

@maartenpaauw
Copy link
Contributor Author

Some clarification: I opened this pull request because the documentation suggests passing the class name to the ->whereEvent(...) method. You can find more information here: https://spatie.be/docs/laravel-event-sourcing/v7/advanced-usage/event-queries

@sebastiandedeyne
Copy link
Member

Thanks!

@sebastiandedeyne sebastiandedeyne merged commit 4ef1bb7 into spatie:main Oct 10, 2024
12 checks passed
@maartenpaauw maartenpaauw deleted the fix/use-class-map-name-when-querying-event-class branch October 10, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants