protected function beforeUpdate() { // If the title of the category has changed, update all products using this category /* * TODO Finish this if ((!empty($values['title']) && $values['title'] != $mapper->title) || ($values['slug'] != $mapper->slug) ) { $this->__update_products = true; } */ parent::beforeUpdate(); }