symfony/symfony — Issue #2562: Wrong ExecutionContext on Callback validator
Author: pierre-b
Created: 2011-11-04 09:32:58+00:00
State: open

The doc http://symfony.com/doc/current/reference/constraints/Callback.html#the-callback-method says:

public function isAuthorValid(ExecutionContext $context)

It gives me the following error:

Catchable Fatal Error: Argument 1 passed to Ae\CoreBundle\Entity\Website::hasACategory() must be an instance of Ae\CoreBundle\Entity\ExecutionContext, instance of Symfony\Component\Validator\ExecutionContext given.

Had to remove the Type of var: isAuthorValid($context)...