public function childModelRowUpdated(Kwf_Model_Row_Abstract $row, $action) { parent::childModelRowUpdated($row, $action); $models = array($this); $models = array_merge($models, $this->_proxyContainerModels); foreach ($models as $model) { foreach ($model->_exprs as $column => $expr) { if ($expr instanceof Kwf_Model_Select_Expr_Child) { if ($model->getDependentModel($expr->getChild()) === $row->getModel()) { $rule = $row->getModel()->getReferenceRuleByModelClass(get_class($model)); $parentRow = $row->getParentRow($rule); $parentRow->{$column} = $model->getExprValue($parentRow, $expr); $parentRow->save(); } } } } }
public function childModelRowUpdated(Kwf_Model_Row_Abstract $row, $action) { parent::childModelRowUpdated($row, $action); $this->getProxyModel()->childModelRowUpdated($row, $action); }