title: How to modify form validators from controller in Zend Framework 2?
body: <p>I am working with Zend Framework 2. I have defined some validation rules within my <a href="http://pastebin.com/MzqRB3Hc" rel="nofollow">Entity class</a>. These work as expected without any problems. </p>
  
  <p>However, when in 'edit' mode I don't want the two file upload fields to be required. I tried to do <code>setRequired(false)</code> for both file upload fields within my <a href="http://pastebin.com/4NmDrZPW" rel="nofollow">controller action</a> but it doesn't seem to have any effect on validation, it still throws a 'file was not found' message. What do I need to so the user can submit the form successfully without uploading any files?</p>
  
  <p>Appreciate any help.</p>