porting cookbook entry from symfony-cmf-docs to doctrine doc. fix #32
Merge pull request #42 from doctrine/custom-documentclassmapper

porting cookbook entry from symfony-cmf-docs to doctrine doc