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 wildcard index mapping #2372

Merged
merged 2 commits into from
Oct 17, 2021

Conversation

IonBazan
Copy link
Member

Q A
Type bug
BC Break no
Fixed issues Fix #2371

Summary

This enables us to map indexes with field.$** name.

@alcaeus
Copy link
Member

alcaeus commented Sep 30, 2021

We could add a mapping test to see if the wildcard index can be correctly mapped in both annotations and XML mappings. Other than that, I'm not sure if we even need to make any logic changes.

@IonBazan IonBazan marked this pull request as ready for review October 15, 2021 04:05
@IonBazan IonBazan added this to the 2.2.3 milestone Oct 15, 2021

class WildcardIndexDocument
{
protected $id;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
protected $id;
private $id;

Copy link
Member Author

Choose a reason for hiding this comment

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

PHPCS is reporting this property as unused when it's private so I will just revert this change. That explains why all other models in this namespace use protected properties too.

@IonBazan IonBazan merged commit 3deac8a into doctrine:2.2.x Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support wildcard indexes
3 participants