public function savertShopProductsList($con = null)
 {
     if (!$this->isValid()) {
         throw $this->getErrorSchema();
     }
     if (!isset($this->widgetSchema['rt_shop_products_list'])) {
         // Widget has been unset
         return;
     }
     if (null === $con) {
         $con = $this->getConnection();
     }
     Doctrine_Query::create()->from('rtShopProductToCategory ptc')->andWhere('ptc.category_id = ?', $this->object->id)->delete()->execute();
     $values = $this->getValue('rt_shop_products_list');
     if (!is_array($values)) {
         $values = array();
     }
     if (count($values)) {
         $i = 0;
         foreach ($values as $v) {
             $rt_product_to_category = new rtShopProductToCategory();
             $rt_product_to_category->setCategoryId($this->object->id);
             $rt_product_to_category->setProductId($v);
             $rt_product_to_category->setPosition($i);
             $rt_product_to_category->save();
             $i++;
         }
     }
 }