doctrine/mongodb-odm — pull request #516 by pvolok (2013-03-01 08:22:39+00:00)
Title: CustomIdType::convertToDatabaseValue() support for id (strategy = INCREMENT)

Current CustomIdType::convertToDatabaseValue() passes the value unchanged. However, when strategy is INCREMENT we want that value to be an integer. So we can use it this way:
```php
$repository->find($request->get('id'))
```

We have to pass field mapping in order to be able to detect the strategy. I hope this is acceptable.