Eddz

Untitled

Sep 3rd, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. // Email
  2.                 array(
  3.                     'spec' => array(
  4.                         'name' => 'email',
  5.                         'type' => 'Zend\Form\Element\Email',
  6.                         'validators' => array(
  7.                             array(
  8.                                 'name' => 'DoctrineModule\Validator\NoObjectExists',
  9.                                 'options' => array(
  10.                                     'object_manager' => $repository,
  11.                                     'fields' => 'email'
  12.                                 )
  13.                             )
  14.                         ),
  15.                         'attributes' => array(
  16.                             'required' => 'required'
  17.                         ),
  18.                         'options' => array(
  19.                             'label' => 'Email',
  20.                         ),
  21.                     ),
  22.                 ),
Advertisement
Add Comment
Please, Sign In to add comment