title: Symfony2 custom validator annotation not working
body: <p>I have a custom validator in <code>src/VNN/PressboxBundle/Component/Validator/CurrentPasswordValidator.php</code>:</p>
  
  <pre><code>&lt;?php
  namespace VNN\PressboxBundle\Component\Validator\Constraints;
  
  use Symfony\Component\Validator\ConstraintValidator,
      Symfony\Component\Validator\Constraint,
      Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface,
      Symfony\Component\Security\Core\SecurityContextInterface,
      JMS\DiExtraBundle\Annotation\Validator,
      JMS\DiExtraBundle\Annotation\InjectParams,
      JMS\DiExtraBundle\Annotation\Inject;
  
  /**
   * @Validator("user.validator.current_password")
   */
  class CurrentPasswordValidator extends ConstraintValidator
  {
      // ...
  }
  </code></pre>
  
  <p>And then I have this at <code>src/VNN/PressboxBundle/Component/Validator/Contraints/CurrentPassword.php</code>:</p>
  
  <pre><code>&lt;?php
  namespace VNN\PressboxBundle\Component\Validator\Constraints;
  
  use Symfony\Component\Validator\Constraint;
  
  /**
   * @Annotation
   */
  class CurrentPassword extends Constraint
  {
      public $message = "Your current password is not valid";
  
      /** 
       * @return string
       */
      public function validatedBy()
      {   
          return 'user.validator.current_password';
      }   
  }
  </code></pre>
  
  <p>For some reason, when I try to add an annotation that uses this validator, I get an error. Here's my entity/annotation:</p>
  
  <pre><code>&lt;?php
  
  namespace VNN\PressboxBundle\Entity;
  
  use Symfony\Component\Security\Core\User\UserInterface;
  use Doctrine\ORM\Mapping as ORM;
  use Doctrine\ORM\Mapping\JoinTable as JoinTable;
  use Doctrine\ORM\Mapping\JoinColumn as JoinColumn;
  use Symfony\Component\Validator\Constraints as Assert;
  use Symfony\Component\Validator\ExecutionContext;
  use Symfony\Component\Validator\Mapping\ClassMetadata;
  use Symfony\Component\Validator\Constraints\NotBlank;
  use Symfony\Component\Validator\Constraints\MaxLength;
  use Symfony\Component\Validator\Constraints\Email;
  use VNN\PressboxBundle\Component\Validator\Constraints\CurrentPassword;
  use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  
  /**
   * VNN\PressboxBundle\Entity\User
   *
   * @ORM\Table(name="user")
   * @ORM\Entity
   */
  class User implements UserInterface, \Serializable
  {
  
      /**
       * @var string $password
       * @Assert\NotBlank()
       * @CurrentPassword()
       *
       * @ORM\Column(name="password", type="string", length=255)
       */
      private $password;
  }
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <blockquote>
    <p>AnnotationException: [Semantical Error] The annotation
    "@VNN\PressboxBundle\Component\Validator\Constraints\CurrentPassword"
    in property VNN\PressboxBundle\Entity\User::$password does not exist,
    or could not be auto-loaded.</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>