DocumentRepository->findBy calls a new protected method contraintField to build the query
hasField wrongly returns false if the field is inherited
Added the alias as parameter in case it is changed in future versions
Fixed typo
Merge remote-tracking branch 'upstream/master'
Compliant to the coding standards
Merge pull request #515 from asiragusa/master

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