public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('user', 'entity', array('class' => 'ExampleApplicationBundle:User', 'property' => 'username', 'label' => 'User'))->add('category', 'entity', array('class' => 'ExampleApplicationBundle:Category', 'property' => 'title', 'label' => 'Category'))->add('title', 'text', array('label' => 'Title'))->add('description', 'textarea', array('label' => 'Description'))->add('preface', 'textarea', array('label' => 'Preface'))->add('content', 'textarea', array('label' => 'Content'))->add('tags', 'textarea', array('label' => 'Tags'));
     parent::buildForm($builder, $options);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('username', 'text', array('label' => 'Username'))->add('password', 'repeated', array('label' => 'Password', 'first_name' => 'Password', 'second_name' => 'Confirm', 'type' => 'password'))->add('email', 'email', array('label' => 'Email'));
     parent::buildForm($builder, $options);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('user', 'entity', array('class' => 'ExampleApplicationBundle:User', 'property' => 'username', 'label' => 'User'))->add('category', 'entity', array('class' => 'ExampleApplicationBundle:Category', 'property' => 'title', 'label' => 'Category'))->add('page', 'entity', array('class' => 'ExampleApplicationBundle:Page', 'property' => 'title', 'label' => 'Page'))->add('item', 'entity', array('class' => 'ExampleApplicationBundle:Item', 'property' => 'title', 'label' => 'Item'))->add('object', 'entity', array('class' => 'ExampleApplicationBundle:Object', 'property' => 'title', 'label' => 'Object'))->add('title', 'text', array('label' => 'Title'))->add('content', 'textarea', array('label' => 'Content'));
     parent::buildForm($builder, $options);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('title', 'text', array('label' => 'Title'))->add('description', 'textarea', array('label' => 'Description'))->add('first', 'text', array('label' => 'First'))->add('last', 'text', array('label' => 'Last'))->add('gender', 'choice', array('label' => 'Gender', 'choices' => Profile::genders()))->add('birth', 'birthday', array('label' => 'Birth'))->add('url', 'url', array('label' => 'Url'))->add('tags', 'textarea', array('label' => 'Tags'));
     parent::buildForm($builder, $options);
 }