Fix for #1

It makes sure that a notice given by `Symfony/Component/Validator/Mapping/ClassMetadata` will not happen.