public function __set($name, $value) { if (in_array($name, $this->_model->getExprColumns())) { throw new Kwf_Exception("Expr Columns are read only"); } if ($this->_model->getOwnColumns() && !in_array($name, $this->_model->getOwnColumns())) { foreach ($this->_getSiblingRows() as $r) { if ($r->hasColumn($name)) { $r->{$name} = $value; return; } } throw new Kwf_Exception("Invalid column '{$name}' for model '" . get_class($this->getModel()) . "'"); } }
public function getExprColumns() { $ret = parent::getExprColumns(); $ret = array_merge($this->getProxyModel()->getExprColumns(), $ret); return $ret; }