/** * @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); } }
public function getControl(Container $form) { $form->addText($this->column->name); }