we can only return a class if a targetDocument is defined
Merge pull request #378 from doctrine/target_document

we can only return a class if a targetDocument is defined