ZF2 inputfilter doctrine NoObjectExists editing object does not validate
问题 So i got a ZF2 application, got a Form and a InputFilter in the InputFilter i have: $this->add( array( 'name' => 'email', 'required' => true, 'validators' => array( array( 'name' => 'EmailAddress' ), array( 'name' => 'DoctrineModule\Validator\NoObjectExists', 'options' => array( 'object_repository' => $sm->get('doctrine.entitymanager.orm_default')->getRepository('YrmUser\Entity\User'), 'fields' => 'email' ), ), ), ) ); works great, however when i edit a existing object and save it the