protected function prepareExecute() { parent::prepareExecute(); if (isset($this->data['id'])) { $this->record->load($this->data['id']); } if ($this->data['id']) { $this->data['parent_id'] = null; } }