protected function beforeUpdate() { // TODO if this item has changed its title, update products afterUpdate() /* $old = $this->load(array('_id' => $this->_id )); if ($old->parent != $this->parent || $old->title != $this->title) { // update children after save $this->__options['update_children'] = true; } */ return parent::beforeUpdate(); }
protected function beforeUpdate() { $this->ancestorsBeforeUpdate(); return parent::beforeUpdate(); }