make getDocumentState public
Merge pull request #251 from doctrine/getDocumentState

make getDocumentState public