示例#1
0
 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();
 }
示例#2
0
 protected function beforeUpdate()
 {
     $this->ancestorsBeforeUpdate();
     return parent::beforeUpdate();
 }