Skip to content

Instantly share code, notes, and snippets.

@trufa
Created October 15, 2014 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trufa/40358ad31d38bcc761e0 to your computer and use it in GitHub Desktop.
Save trufa/40358ad31d38bcc761e0 to your computer and use it in GitHub Desktop.
[1] Symfony\Component\Validator\Exception\UnexpectedTypeException: Expected argument of type "Symfony\Component\Validator\ConstraintValidatorInterface", "Bcg\UtilsBundle\Validator\Constraints\ValidCoupon" given
at n/a
in /var/www/website/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Validator/ConstraintValidatorFactory.php line 77
at Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory->getInstance(object(ValidCoupon))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ExecutionContext.php line 274
at Symfony\Component\Validator\ExecutionContext->executeConstraintValidators('sdf', array(object(ValidCoupon)))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ExecutionContext.php line 241
at Symfony\Component\Validator\ExecutionContext->validateValue('sdf', array(object(ValidCoupon)))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ValidationVisitor.php line 110
at Symfony\Component\Validator\ValidationVisitor->visit(object(PropertyMetadata), 'sdf', 'Default', 'data.coupon')
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/MemberMetadata.php line 47
at Symfony\Component\Validator\Mapping\MemberMetadata->accept(object(ValidationVisitor), 'sdf', 'Default', 'data.coupon', null)
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/ClassMetadata.php line 114
at Symfony\Component\Validator\Mapping\ClassMetadata->accept(object(ValidationVisitor), object(Order), 'Default', 'data')
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ValidationVisitor.php line 162
at Symfony\Component\Validator\ValidationVisitor->validate(object(Order), 'Default', 'data', true, false)
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ExecutionContext.php line 227
at Symfony\Component\Validator\ExecutionContext->validate(object(Order), 'data', 'Default', true)
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php line 59
at Symfony\Component\Form\Extension\Validator\Constraints\FormValidator->validate(object(Form), object(Form))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ExecutionContext.php line 276
at Symfony\Component\Validator\ExecutionContext->executeConstraintValidators(object(Form), array(object(Form)))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ExecutionContext.php line 241
at Symfony\Component\Validator\ExecutionContext->validateValue(object(Form), array(object(Form)))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ValidationVisitor.php line 110
at Symfony\Component\Validator\ValidationVisitor->visit(object(ClassMetadata), object(Form), 'Default', '')
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/ClassMetadata.php line 107
at Symfony\Component\Validator\Mapping\ClassMetadata->accept(object(ValidationVisitor), object(Form), 'Default', '')
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/ValidationVisitor.php line 162
at Symfony\Component\Validator\ValidationVisitor->validate(object(Form), 'Default', '', false, false)
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator.php line 90
at Symfony\Component\Validator\Validator->validate(object(Form))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php line 55
at Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener->validateForm(object(FormEvent))
in line
at call_user_func(array(object(ValidationListener), 'validateForm'), object(FormEvent))
in /var/www/website/app/cache/dev/classes.php line 1674
at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(array(object(ValidationListener), 'validateForm')), 'form.post_bind', object(FormEvent))
in /var/www/website/app/cache/dev/classes.php line 1607
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('form.post_bind', object(FormEvent))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php line 42
at Symfony\Component\EventDispatcher\ImmutableEventDispatcher->dispatch('form.post_bind', object(FormEvent))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 653
at Symfony\Component\Form\Form->submit(object(Request))
in /var/www/website/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 667
at Symfony\Component\Form\Form->bind(object(Request))
in /var/www/website/src/Bcg/MainBundle/Controller/StoreController.php line 146
at Bcg\MainBundle\Controller\StoreController->indexAction()
in line
at call_user_func_array(array(object(StoreController), 'indexAction'), array())
in /var/www/website/app/bootstrap.php.cache line 2841
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
in /var/www/website/app/bootstrap.php.cache line 2815
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
in /var/www/website/app/bootstrap.php.cache line 2944
at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
in /var/www/website/app/bootstrap.php.cache line 2245
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
in /var/www/website/web/app_dev.php line 31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment