fix/hack for target-document
make yml work too
Merge pull request #286 from doctrine/target-document-optional

fix/hack for target-document