コード例 #1
0
 public function generateFormFields()
 {
     $columns = $this->tableMap->getColumns();
     foreach ($columns as $column) {
         $newField = new FormInput($this->namespace, $column);
         if ($newField->hasRelations()) {
             $newField->setTemplate('partials/formInputs/relationalSelect.twig');
         } else {
             $newField->setTemplate($this->templates[$newField->getType()]);
         }
         $this->setField($newField);
     }
 }