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.
Yep, it's a bug fix, I will do that asap