src/MainBundle/Form/Type/ScheduleType.php
/**
	 * @param FormBuilderInterface $builder
	 * @param array $options
	 */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
	{
		$builder           
			->add('title', 'text')
			->add('firstname', 'text', array('label' => 'First name'))
			->add('owauuid', 'hidden')
			->add('owaonekeycode', 'hidden')
			->add('scheduleStatus', 'entity',
				array('class'   => 'MainBundle\Entity\ScheduleStatus',
				'property'  => 'name'))
			->add('lastname', 'text', array('label' => 'Last name'))
			->add('email', 'text', array('label' => 'Email address'))
			->add('phone', 'text')
			->add('scheduledatetime','datetime', array('format' => "yyyy-MM-dd HH:mm",'widget' => "single_text"))
			->add('submit', 'submit');
	}
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'title' , 'text' ) -> add ( 'firstname' , 'text' , array ( 'label' => 'First name' ) ) -> add ( 'owauuid' , 'hidden' ) -> add ( 'owaonekeycode' , 'hidden' ) -> add ( 'scheduleStatus' , 'entity' , array ( 'class' => 'MainBundle\Entity\ScheduleStatus' , 'property' => 'name' ) ) -> add ( 'lastname' , 'text' , array ( 'label' => 'Last name' ) ) -> add ( 'email' , 'text' , array ( 'label' => 'Email address' ) ) -> add ( 'phone' , 'text' ) -> add ( 'scheduledatetime' , 'datetime' , array ( 'format' => " yyyy-MM-dd HH:mm " , 'widget' => " single_text " ) ) -> add ( 'submit' , 'submit' ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options