Advertisement
Eddz

Untitled

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