Advertisement
Eddz

Untitled

Sep 4th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1. public function getInputFilterSpecification()
  2.     {
  3.         return array(
  4.             'fsOne' => array(
  5.                 'email' => array(
  6.                     'validators' => array(
  7.                         array(
  8.                             'name' => 'DoctrineModule\Validator\NoObjectExists',
  9.                             'options' => array(
  10.                                 'object_repository' => $this->repository,
  11.                                 'fields' => 'email',
  12.                             ),
  13.                             'messages' => array(
  14.                                 'objectFound' => 'Sorry guy, a user with this email already exists !'
  15.                             )
  16.                         )
  17.                     )
  18.                 )
  19.             )
  20.         );
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement