Skip to content

Bug - validation - email #12

Description

@thim81

When trying the validation configuration

 #validate imported data
            validation:
                source:                     #add constraints to source fields
                    header1: email
                    header2: notempty
                target: ~                   #activate validation against generated object from object-factory (via annotations, xml)
                                            #or supply list of constraints like in source

The cmd outputs the following error:

 [Symfony\Component\Debug\Exception\ClassNotFoundException]  
  Attempted to load class "email" from the global namespace.  
  Did you forget a "use" statement?           

Part of the stack trace

    1.6576   33232264   7. Mathielen\ImportEngineBundle\Command\ImportCommand->execute() /Users/tim/Sites/webapp/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:257
    1.6577   33233448   8. Mathielen\ImportEngineBundle\Command\ImportCommand->import() /Users/tim/Sites/webapp/vendor/mathielen/import-engine-bundle/Mathielen/ImportEngineBundle/Command/ImportCommand.php:66
    1.6590   33388040   9. Symfony\Component\DependencyInjection\Container->get() /Users/tim/Sites/webapp/vendor/mathielen/import-engine-bundle/Mathielen/ImportEngineBundle/Command/ImportCommand.php:92

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions