public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('title', 'text', array('required' => true, 'label' => 'Title'));
     $builder->add('body_text', 'textarea', array('required' => false, 'label' => 'Body (Text)'));
     $builder->add('body_html', 'textarea', array('required' => false, 'label' => 'Body (HTML)'));
     $builder->add('sort', 'text', array('required' => true, 'label' => 'Sort'));
     $this->nodeOption = $builder->getData();
     $builder->add('destination_node', 'entity', array('required' => true, 'label' => 'Destination Node', 'class' => 'QuestionKeyBundle:Node', 'expanded' => true, 'multiple' => false, 'query_builder' => function (EntityRepository $er) {
         return $er->createQueryBuilder('u')->where('u.treeVersion = :tree_version')->setParameter('tree_version', $this->nodeOption->getNode()->getTreeVersion())->orderBy('u.title', 'ASC');
     }));
 }