title: Do i need Symfony2's $form->isValid() for a search field?
body: <p>I have created a <strong>search form</strong> on the fly in my controller to list users by nicknames / names:</p>
  
  <pre><code>$form = $this-&gt;createFormBuilder()
          -&gt;add('username', 'search', array('required'=&gt; false))
          -&gt;add('name', 'search', array('required'=&gt; false))
          -&gt;add('submit', 'submit')
          -&gt;getForm();
  </code></pre>
  
  <p>So, because this form isn't mappped in my database, I don't use any Assert.</p>
  
  <p><strong>My question</strong> : I don't know if I have to use <a href="http://api.symfony.com/2.4/Symfony/Component/Form/Form.html#method_isValid" rel="nofollow">isValid()</a> because I don't know if this method does the same as <code>get(‘validator’)-&gt;validate()</code>, (then I wouldn't need it), or if it checks other interresting things.</p>
  
  <p>Thanks for help, have a nice day!</p>