Update query-builder.rst

expresion substr changed to substring as of
http://www.doctrine-project.org/jira/browse/DDC-382
Merge pull request #795 from sabzeta/patch-1

Update query-builder.rst