/** * prepareExecute * * @return void */ protected function prepareExecute() { parent::prepareExecute(); $pks = (array) $this->pks; $this->record->load(array_shift($pks)); $this->primary = (bool) $this->record->primary; $this->topic = $this->model->getRecord('Topic'); $this->topic->load($this->record->topic_id); }
/** * prepareExecute * * @return void */ 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); }
/** * prepareExecute * * @return void */ protected function prepareExecute() { parent::prepareExecute(); $this->record->load($this->pks); }