doctrine/mongodb-odm — pull request #439 by Parad0X (2012-10-28 02:59:24+00:00)
Title: ensureIndex: remove "safe" option.

This haven't been working for us for quite some time now and I finally decided to look into it.

According to http://www.mongodb.org/display/DOCS/Indexes there is no "safe" option for ensureIndex and having safe set makes MongoCursor throw an exception with "norepl" message.

It could also be useful to have a check in there and throw an exception that's more meaningful than "norepl".

```php
if (isset($index['options']['safe']))
throw new \RuntimeException('safe ensureIndex option is not supported.');
}
```