Skip to content

Commit 8c33c7c

Browse files
committed
minor symfony#15547 #42227 recommend createIndex over ensureIndex (kralos)
This PR was merged into the 5.2 branch. Discussion ---------- #42227 recommend createIndex over ensureIndex See symfony/symfony#42227 Commits ------- 3498214 #42227 update phpdoc to recommend createIndex over ensureIndex
2 parents 9d142d4 + 3498214 commit 8c33c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lock.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ Such an index can be created manually:
768768

769769
.. code-block:: javascript
770770
771-
db.lock.ensureIndex(
771+
db.lock.createIndex(
772772
{ "expires_at": 1 },
773773
{ "expireAfterSeconds": 0 }
774774
)

0 commit comments

Comments
 (0)