Ejemplo n.º 1
0
 /**
  * Populates the given form with the needed fields
  *
  * @param Form $form
  *
  * @return Form
  */
 public static function populateForm(Form $form)
 {
     if (static::$builder === null) {
         static::setBuilder(new V1Model());
         static::$builder->setWrapperElement(null);
     }
     $elements = static::$builder->generate(get_called_class());
     return $form->setContents($elements);
 }