We are happy to announce the immediate availability of Doctrine MongoDB ODM 1.0.3.
Reusing embedded documents
Until now, we have advised developers to deep clone embedded documents when changing owning documents; otherwise, strange things could happen. The reason being was that in order for ODM to properly track changes, it would store parent parent associations and manage the lifecycle of each document (top-level and embedded alike). It was therefore reasonable that Doctrine require relocated objects to be distinct instances.
Manual cloning is no longer needed!
With this relase, ODM will now do all the heavy lifting for you.
Documents found to have been reused during a
lifecycle event shall be cloned by
UnitOfWork automatically and
updated on the parent document or collection.
Other bug fixes
Work on 1.1 is starting and it will require PHP 5.5+
We are happy to announce that work on 1.1 is commencing! While no
release dates have been scheduled, you can take a look at the 1.1
for brief list of goodies that we intend to ship next. If you would like
to suggest additional features or, better yet, help in with development,
please get in touch. Currently, we are looking forward to implementing
especially now that MongoDB announced \$lookup
available for everybody in 3.2 and custom collection
master branch will soon become development branch for 1.1
and the PHP requirement will be bumped to 5.5. If you cannot upgrade
your PHP runtime, please continue to use the 1.0.x branch. If you are
interested in testing the latest bug fixes (before we tag them), you may
want to follow the 1.0.x