public function afterSave($parentRow, $postData) { parent::afterSave($parentRow, $postData); foreach ($this->toSaveGeneratorProperty as $i) { if (isset($i['row']->component_id)) { $id = $i['row']->component_id . '-' . $i['row']->id; } else { $id = $i['row']->id; } $data = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($id, array('ignoreVisible' => true, 'limit' => 1)); if (!$data) { throw new Kwf_Exception("Didn't get data for {$id}"); } $i['plugin']->saveGeneratorPropertyValue($data, $i['value']); } }