title: Which is the suggested place to modify binded form data in Symfony?
body: <p>I've a form for creating a new <code>Customer</code>. A customer may have a mobile number. Mobile number should be persisted without <code>+</code> or <code>00</code> prefix that user can type. This can be accomplished easly with:</p>
  
  <pre><code>$customer-&gt;setMobile(preg_replace("/^(\+|00)/", '', $customer-&gt;getMobile()));
  </code></pre>
  
  <p>Which is the best place to put this code?</p>
  
  <ul>
  <li>Inside a <code>CustomerController</code> prior to call entity manager and persist the entity. Is this really a matter of a controller in MVC pattern?</li>
  <li>Using a <code>SanitizeCustomerSubscriber</code> and listening to <code>FormEvents:POST_BIND</code> event</li>
  <li>Using a <code>CustomerSanitizer</code> service</li>
  </ul>
  
  <p>Any other idea? Of course i'm speaking of data manipulation in general, mobile number is just an example: fields to be sanitized could be more than just one.</p>