fix bug about createDocument and multilang
return early if document already created and not refreshing
remove unneeded else statement
cleaning up the code, rename createDocument to getOrCreateDocument and createProxy to getOrCreateProxy
Merge pull request #244 from doctrine/fix-referrers-children-duplication

fix bug about createDocument and multilang