Update query-builder.rst

expresion substr changed to substring as of
http://www.doctrine-project.org/jira/browse/DDC-382