bobthecow/genghis — Issue #8: MongoId's aren't printed if PECL driver < 1.0.11
Author: jmikola
Created: 2012-03-07 20:40:51+00:00
State: open

I was using Genghis with an outdated PECL driver and noticed that MongoId's were no being rendered in the app. They'd show up as `{}` or `[Object object]` in document headers.

You'll need to handle these specially (probably with a string cast) in versions before 1.0.11:

> Added $id field to MongoId so that json_encode turns it into {$id:...}

http://pecl.php.net/package-info.php?package=mongo&version=1.0.11