Is it possible to pass multiple properties in the entityChoiceField so that 
the value consist of multiple fields? For example, first and last name.

Passing an array results in an error.

      $this->add(new EntityChoiceField('salesRep', array(
         'em' => $em,
         'empty_value' => 'Select',
         'class' => 'Sensio\HelloBundle\Entity\User',
         'property' => array('firstName','lastName'),
         'query_builder' => function ($userRepository) {
             return 
$userRepository->createQueryBuilder('u')->where('u.active = 
?1')->setParameter(1, '1');

         },
       )));

Thanks!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to