public function execute(Form $form) { $this->form = $form; $properties = $this->getPreparedProperties(); $id = $this->addElement($properties); $form->setDataItem('ID', $id); }