title: Symfony 2 / Doctrine user-defined DQL functions parameter have string length limit?
body: <p>I created my custom DQL function for Doctrine DQL:</p>
  
  <pre><code>class Translate extends FunctionNode {
      public $field;
  
      public function getSql(SqlWalker $sqlWalker) {
          $query = "TRANSLATE(" . $this-&gt;field-&gt;dispatch($sqlWalker) . ", 'àâäãáåÀÁÂÃÄÅçÇéèêëÉÈÊËîïìíÌÍÎÏñÑôöðòóÒÓÔÕÖùúûüÙÚÛÜýÿÝ', 'AAAAAAAAAAAACCEEEEEEEEIIIIIIIINNOOOOOOOOOOUUUUUUUUYYY')";
          return $query;
      }
  
      public function parse(Parser $parser) {
          $parser-&gt;match(Lexer::T_IDENTIFIER);
          $parser-&gt;match(Lexer::T_OPEN_PARENTHESIS);
          $this-&gt;field = $parser-&gt;StringPrimary();
          $parser-&gt;match(Lexer::T_CLOSE_PARENTHESIS);
      }
  }
  </code></pre>
  
  <p>It seems to work well when using it.</p>
  
  <p>But if the string parameter contains more than 307 chars, it is not working.
  There is no error but the script is ending.</p>
  
  <pre><code>$query = $this-&gt;createQueryBuilder('...');
  $query-&gt;addSelect("TRANSLATE('less than 307 chars')"); // working
  $query-&gt;addSelect("TRANSLATE('more than 307 chars')"); // NOT working
  </code></pre>
  
  <p>How can I use more than 307 chars?</p>