protected function doSave($con)
 {
     $affectedRows = 0;
     if (!$this->alreadyInSave) {
         $this->alreadyInSave = true;
         if ($this->aProductCategory !== null) {
             if ($this->aProductCategory->isModified() || $this->aProductCategory->getCurrentProductCategoryI18n()->isModified()) {
                 $affectedRows += $this->aProductCategory->save($con);
             }
             $this->setProductCategory($this->aProductCategory);
         }
         if ($this->isModified()) {
             if ($this->isNew()) {
                 $pk = ProductCategoryI18nPeer::doInsert($this, $con);
                 $affectedRows += 1;
                 $this->setNew(false);
             } else {
                 $affectedRows += ProductCategoryI18nPeer::doUpdate($this, $con);
             }
             $this->resetModified();
         }
         $this->alreadyInSave = false;
     }
     return $affectedRows;
 }