public function setForm($form)
 {
     $this->fieldCurrency->setForm($form);
     $this->fieldAmount->setForm($form);
     return parent::setForm($form);
 }
 public function setForm($form)
 {
     foreach ($this->getChildren() as $field) {
         if ($field instanceof FormField) {
             $field->setForm($form);
         }
     }
     parent::setForm($form);
     return $this;
 }
 /**
  * @param FormField $field
  */
 public function setTimeField($field)
 {
     $expected = $this->getName() . '[time]';
     if ($field->getName() != $expected) {
         throw new InvalidArgumentException(sprintf('Wrong name format for time field: "%s" (expected "%s")', $field->getName(), $expected));
     }
     $field->setForm($this->getForm());
     $this->timeField = $field;
     $this->setValue($this->value);
     // update value
 }