title: Symfony / Constrains & Validators on forms (email constrain)
body: <p>It's possible to create a custom email constrain validator (like @domain.com) using the "Custom Validation Constraint" of Symfony (<a href="http://symfony.com/doc/current/validation/custom_constraint.html" rel="nofollow noreferrer">http://symfony.com/doc/current/validation/custom_constraint.html</a>) but not using the constrain in the Entity class?</p>
  
  <p>I'm have an multitenant site in symfony and differents formsTypes for each client. One client needs that only can sing up X emails domains. In this case, I can't use a constrain in entity class like this:</p>
  
  <pre><code>class MyEntity
  {
      /**
       * @Assert\Email()
       * @CustomAssert\EmailDomain(domains = {"yahoo.com", "gmail.com"})
       */
      protected $email;
  </code></pre>
  
  <p>Any different idea?</p>