Permalink
Browse files

Merge pull request #172 from doctrine/1.0.x-ensureindex-wc

Collection::ensureIndex() should convert write options (fixes #168)
  • Loading branch information...
2 parents f781f2b + 30aa713 commit 2d9053cfcdc8cb3632e42a0964f15c1743eaa93f @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 2d9053c

Please sign in to comment.