Example #1
0
 /**
  * @param \Nette\ComponentModel\Container $obj
  */
 protected function attached($obj)
 {
     parent::attached($obj);
     if ($obj instanceof Form) {
         foreach ($this->getMapper()->getIdentifierValues($this->data) as $key => $id) {
             $this->addHidden($key)->setDefaultValue($id);
         }
         $this->getMapper()->assign($this->data, $this);
     }
 }
Example #2
0
 public function getControl(Container $form)
 {
     $form->addText($this->column->name);
 }