コード例 #1
0
 /**
  * @see ParameterForm
  */
 public function configure()
 {
     parent::configure();
     unset($this['created_at']);
     $parameterOption = new ParameterOption();
     $this->embedForm('new_option', new ParameterOptionForm());
     if (!$this->isNew()) {
         foreach ($this->getObject()->getParameterOptions() as $option) {
             $this->embedForm('option_' . $option->getId(), new ParameterOptionForm($option));
         }
     }
 }