Permalink
Browse files

Collection::ensureIndex() should convert write options (fixes #168)

  • Loading branch information...
1 parent f781f2b commit 30aa713f39141e986c08e7e14aaf803bb7a0bdd5 @jmikola jmikola committed Apr 10, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 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);
}

0 comments on commit 30aa713

Please sign in to comment.