/** 
  * Deletes from the database all the deleted languages, pages and contents 
  * during the edit phase
  * 
  * @return bool The operation result
  */
 private function updateDb()
 {
     try {
         $con = Propel::getConnection();
         $con = w3sPropelWorkaround::beginTransaction($con);
         // Deletes the languages
         $c = new Criteria();
         $c->add(W3sLanguagePeer::TO_DELETE, 1);
         W3sLanguagePeer::doDelete($c);
         // Deletes the groups
         $c = new Criteria();
         $c->add(W3sGroupPeer::TO_DELETE, 1);
         W3sGroupPeer::doDelete($c);
         // Deletes the pages
         $c = new Criteria();
         $c->add(W3sPagePeer::TO_DELETE, 1);
         W3sPagePeer::doDelete($c);
         // Deletes the contents
         $c = new Criteria();
         $c->add(W3sContentPeer::TO_DELETE, 1);
         W3sContentPeer::doDelete($c);
         $con->commit();
         return true;
     } catch (Exception $e) {
         w3sPropelWorkaround::rollBack($con);
         sfContext::getInstance()->getLogger()->info('W3StudioCMS - ' . $this->setExceptionError($e->getMessage()));
         return false;
     }
 }