I want to reuse a Fieldset that implements InputFilterProviderInterface o it has the method getInputFilterSpecification where I can declare the specifications for all the elements in the fieldset.
public function getInputFilterSpecification()
{
return array(
'email' => array(
'filters' => $this->getTextFilters(),
'validators' => array(
$this->getUniqueObjectValidator()
...
The problem is that the getUniqueObjectValidator needs the Doctrine\ORM\EntityManager but it is not declared in the ServiceLocator for the InputFilter.
How do you think I can acces to the EntityManager in the inputFilter factories?