protected function prepareExecute()
{
parent::prepareExecute();
if (isset($this->pks)) {
$this->id = $this->pks;
}
$this->parent = $this->model->getRecord('Category');
$this->record->load($this->id);
$this->parent->load($this->record->parent_id);
}