Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Collection::ensureIndex() should convert write options #172

Merged
merged 1 commit into from

1 participant

@jmikola
Owner

Fixes #168.

@jmikola jmikola added this to the 1.0.9 milestone
@jmikola jmikola added the bug label
@jmikola jmikola merged commit 2d9053c into from
@jmikola jmikola deleted the branch
@jmikola jmikola changed the title from Collection::ensureIndex() should convert write options (fixes #168) to Collection::ensureIndex() should convert write options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Doctrine/MongoDB/Collection.php
View
1  lib/Doctrine/MongoDB/Collection.php
@@ -485,6 +485,7 @@ protected function doDrop()
public function ensureIndex(array $keys, array $options = array())
{
+ $options = isset($options['safe']) ? $this->convertWriteConcern($options) : $options;
return $this->getMongoCollection()->ensureIndex($keys, $options);
}
Something went wrong with that request. Please try again.