DocumentRepository->findBy calls a new protected method contraintField t...

...o build the query

This new method allows us to just override the constraintField method instead of having to rewrite the whole method. 

I also fixed an error in the doc.
Coding standards: `{` must be on next line