First fix

Use doctrineAdapter in case of using DoctrineORM to prevent this problem : https://github.com/zf-fr/zfr-rest/issues/91

I'm not sure if this is what @bakura10 had in mind.