title: Symfony replace the OR word with the pipe character
body: <p>Symfony is replacing the OR word of my parameter value by a pipe caracter (ROLE_MENU_SUPP|T_EDITION ) in the http call that I made for my API. Here's a stack trace</p>
  
  <pre><code>An exception occurred while executing 'SELECT t0.id AS id_1, t0.name AS 
  nom_2 FROM roles t0 WHERE t0.name = ?' 
  with params ["ROLE_MENU_SUPPORT_EDITION"]:
  
  Execution failed for request: GET 
  /app_dev.php/api/roles?name=ROLE_MENU_SUPP|T_EDITION 
  HTTP/1.1: HTTPCode 204, body
  </code></pre>
  
  <p>Here's the API method:</p>
  
  <pre><code>    /**
   * @Rest\View(statusCode=Response::HTTP_NO_CONTENT)
   * @Rest\Get("/roles")
   */
  public function getAllEntitiesAction(Request $request)
  {
      $filtre = array();
  
      if ($request-&gt;get("name")) {
          $filtre = array(
              'name' =&gt; $request-&gt;get("name")
          );
      }
      $em = $this-&gt;getDoctrine()-&gt;getManager();
  
      return $em-&gt;getRepository($this-&gt;entity)-&gt;findBy($filtre);
  }
  </code></pre>