is this enough to fix http://www.doctrine-project.org/jira/browse/PHPCR-110 ? in the ticket i am worried about returning null but i saw no problem arising when i do what i do here.
fix/hack for target-document
i think this leads to the same situation as when the annotation is not specified, so it should be correct. i will check if we need the same for yml driver and then merge.
make yml work too
not 100% if yml mapping is all correct or if we miss some functional tests with yml mapping. but at the very least it will be less wrong now.