doctrine/mongodb-odm — pull request #339 by khepin (2012-06-27 10:24:16+00:00)
Title: DB to PHP conversion never happens...

Run: `phpunit tests/Doctrine/ODM/MongoDB/Tests/CustomTypeTest.php` to see the tests results.

* First test shows that the `Type::convertToDatabaseValue` method is always called as it should
* Second test shows that it's not only being called, it actually works correctly!
* Third test shows that the `Type::convertToPHPValue` method isn't called (the current implementation only throws an exception to make sure this is easy to spot).