text: Q:
  
  Set default value on entity list in Symfony
  
  I defined a form entity list:
  ->add('businessTime', 'entity', array(
      'class' => 'AcmeDemoBundle:BusinessTimes',
      'property' => 'name',
      'required' => true
  );
  
  With this the list is displayed but with blank option as default. I would like to display a selected option from the entity by default.
  
  A:
  
  you can use the data property for that
   ->add('businessTime', 'entity',   array(
      'class' => 'AcmeDemoBundle:BusinessTimes',
      'property' => 'name',
      'data' => 1234456,
      'required' => true
       );
  
  