Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     $field = clone $this->prototype;
     $field->setKey('first');
     $field->setPropertyPath('first');
     $this->add($field);
     $field = clone $this->prototype;
     $field->setKey('second');
     $field->setPropertyPath('second');
     $this->add($field);
     parent::configure();
 }
Beispiel #2
0
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     $this->addOption('first_key', 'first');
     $this->addOption('second_key', 'second');
     parent::configure();
     $field = clone $this->prototype;
     $field->setKey($this->getOption('first_key'));
     $field->setPropertyPath($this->getOption('first_key'));
     $this->add($field);
     $field = clone $this->prototype;
     $field->setKey($this->getOption('second_key'));
     $field->setPropertyPath($this->getOption('second_key'));
     $this->add($field);
 }