title: How to auto-fill form with URL params in Symfony2
body: <p>I have a view in Symfony 2.3 that shows a full list of employee likes and dislikes. I am trying to create a simple form at the top of this view to filter the list by employee by name. </p>
  
  <p>I have currently created the form within a twig template using regular HTML and some TWIG conditional statements to check if the employee_name GET param matches one of the employees. This solution works but isn't ideal.</p>
  
  <pre><code>&lt;form action="{{ path('report') }}" method="GET"&gt;
      &lt;select id='employee_name' name='employee_name'&gt;
           &lt;option value='John' {% if app.request.get("employee_name") == 'John' %} selected {% endif %}&gt;John&lt;/option&gt;
           &lt;option value='Aaron' {% if app.request.get("employee_name") == 'Aaron' %} selected {% endif %}&gt;Aaron&lt;/option&gt;
           &lt;option value='Sam' {% if app.request.get("employee_name") == 'Sam' %} selected {% endif %}&gt;Sam&lt;/option&gt;
      &lt;/select&gt;
      &lt;button type="submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My question is, is there a way to write the above form using the Form Builder and still have it auto-fill the fields when submitting? I'd like my filter form to be scalable and reusable. Perhaps it be would better to just use an Twig Include? Suggestions welcome. </p>