Skip to content

0.1.4: Namespaces & ODS

Pre-release
Pre-release
Compare
Choose a tag to compare
@bjori bjori released this 02 Feb 23:45

namespace changes

All classes have been moved into MongoDB\Driver\xxx namespace now.
The intentions with this extension is to be wrapped by external libraries to create abstraction layers and improved interface, the decision was to move the classes to MongoDB\Driver\ and leave the MongoDB\ for libraries to use.

The BSON classes are still in BSON\ though.

ODS (Object Document Serializer)

This release includes a new way to serialize (and unserialize!) objects. Classes that implement the BSON\Persistable interface will get their classname recorded during serialization - and upon unserializing the document back, it will be converted to the same object back.
See https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/tests/standalone/manager-executeInsert-002.phpt#L12

var_dump() debugging

Most/all classes now expose lots of internal gory details about themself to help debugging

MongoDB 3.0 support

phongo now supports MongoDB 3.0, thanks to mongoc-1.1 and libbson-1.1 bumps.

phongo does not actively test against MongoDB to 2.4 or earlier, but will likely work fine with 2.4 and 2.2.

Full release notes

https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.1.4