The ProxyFactory was redeclaring methods 
The ProxyFactory was redeclaring methods 

The ProxyFactory was redeclaring methods  serialize and unserialize  on the cache file on some OSs.

This is a direct port of fix already in ORM:
https://github.com/thiagofesta/doctrine2/commit/66d2b9e0fba22e6e6b524548ee8a9c2b6df76d08
AxaliaN/phpcr-odm2,valiton-forks/phpcr-odm,WouterJ/phpcr-odm,sarcher/phpcr-odm,Ocramius/phpcr-odm,Ocramius/phpcr-odm,uwej711/phpcr-odm,valiton-forks/phpcr-odm,AxaliaN/phpcr-odm2,uwej711/phpcr-odm,doctrine/phpcr-odm,WouterJ/phpcr-odm,sarcher/phpcr-odm,doctrine/phpcr-odm