public function init()
 {
     parent::init();
     $this->setHydrator(new DoctrineHydrator($this->getObjectManager()))->setObject(new FileAttachment());
     $this->add(array('name' => 'filename', 'type' => 'File', 'options' => array('label' => gettext_noop('Filename'), 'column-size' => 'sm-10', 'label_attributes' => array('class' => 'col-sm-2')), 'attributes' => array('id' => "")));
     $this->add(array('name' => 'fileLink', 'type' => 'Text', 'options' => array('label' => gettext_noop('File Link'), 'column-size' => 'sm-10', 'label_attributes' => array('class' => 'col-sm-2')), 'attributes' => array('id' => "")));
 }
 public function init()
 {
     parent::init();
     $this->setObject(new LinkAttachment());
     $this->add(array('name' => 'url', 'type' => 'Text', 'options' => array('label' => gettext_noop('URL'), 'column-size' => 'sm-10', 'label_attributes' => array('class' => 'col-sm-2')), 'attributes' => array('id' => "")));
 }