doctrine/phpcr-odm — pull request #96 by dbu (2012-02-02 08:42:45+00:00)
Title: Versioning support

adding versioning support as discussed on the mailing list. please see the added doc in the readme to see how this is to be used. the rudimentary versioning support that existed before is heavily refactored. if you used it, you will need to change:

* Document attribute versionable is now required. it must be set to either "simple" or "full"
* the @ Version annotation is gone, it makes not much sense. for old version snapshot documents, you can use @ VersionName and @ VersionCreated to track the metadata.
* checkin and checkout are now lowercased to be consistent. note that we added checkpoint for convenience
* restore has been renamed to restoreVersion and expects as parameter an old version rather than the document and version name.
* instead of getPredecessors (which was misnamed anyways), use getAllLinearVersions to get metadata about versions, and use findVersionByName to get a detached document of the old version of your data.

apart from that, we added a removeVersion and update to latest jackalope with lots of fixes in version handling code.