Skip to content

Instantly share code, notes, and snippets.

@awdng
Created April 17, 2013 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awdng/5406089 to your computer and use it in GitHub Desktop.
Save awdng/5406089 to your computer and use it in GitHub Desktop.
<?php
namespace Application\Biologica\MainBundle\Form\Therapy;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ConceptType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('name')
;
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Application\Biologica\MainBundle\Entity\Therapy\Concept',
'csrf_protection' => false,
));
}
public function getName()
{
return '';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment