Skip to content

Commit dad83ee

Browse files
committed
minor symfony#15548 #42229 update phpdoc to recommend createIndex over ensureIndex (kralos)
This PR was merged into the 4.4 branch. Discussion ---------- #42229 update phpdoc to recommend createIndex over ensureIndex See symfony/symfony#42229 Commits ------- 0f1a5ff #42229 update phpdoc to recommend createIndex over ensureIndex
2 parents 68e97af + 0f1a5ff commit dad83ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ performance. Run this from the `MongoDB shell`_:
532532
.. code-block:: javascript
533533
534534
use session_db
535-
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
535+
db.session.createIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
536536
537537
Configuring the Session Field Names
538538
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)