Skip to content

[Lock] #42227 recommend createIndex over ensureIndex #15547

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

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

kralos
Copy link

@kralos kralos commented Jul 22, 2021

@carsonbot carsonbot added this to the 5.2 milestone Jul 22, 2021
@kralos kralos changed the title #42227 update phpdoc to recommend createIndex over ensureIndex #42227 recommend createIndex over ensureIndex Jul 22, 2021
@kralos kralos force-pushed the 42227-mongodb-index branch from 1d95258 to 3498214 Compare July 22, 2021 05:27
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Jul 22, 2021
This PR was merged into the 5.2 branch.

Discussion
----------

[Lock] recommend createIndex over ensureIndex

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no - kinda (phpdoc only fix)
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #42227
| License       | MIT
| Doc PR        | symfony/symfony-docs#15547

Updated PHPDoc to recommend using `createIndex` instead of `ensureIndex`. `ensureIndex` was deprecated in `mongodb 3.0.0` and removed in `mongodb 5.0.0`

Commits
-------

4f8d8ee #42227 update phpdoc to recommend createIndex over ensureIndex
@carsonbot carsonbot changed the title #42227 recommend createIndex over ensureIndex [Lock] #42227 recommend createIndex over ensureIndex Jul 22, 2021
@javiereguiluz
Copy link
Member

Thanks for also fixing this occurrence!

@javiereguiluz javiereguiluz merged commit 8c33c7c into symfony:5.2 Jul 22, 2021
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