doctrine/mongodb-odm — pull request #806 by igorw (2014-02-19 16:37:10+00:00)
Title: Serialize ClassMetadata::$associationMappings correctly

Prior to this commit, APC cached ClassMetadata was completely broken. ClassMetadata::__sleep()
does not return associationMappings, which menas that when it is written to cache, that field
is not added.

When it is read from the cache it is simply an empty array. In certain cases this can cause
problems (data loss).