Exemplo n.º 1
0
 public function deleteRow($aRowData, $oCriteria)
 {
     $bResult = false;
     $sNameSpace = TranslationPeer::getNameSpaceFromStringKey($aRowData['id']);
     if (TranslationPeer::doDelete($oCriteria) && $sNameSpace !== null) {
         $bResult = !TranslationPeer::nameSpaceExists($sNameSpace);
     }
     return array(StringDetailWidgetModule::SIDEBAR_CHANGED => $bResult);
 }
Exemplo n.º 2
0
 /**
  * Removes this object from datastore and sets delete attribute.
  *
  * @param      Connection $con
  * @return     void
  * @throws     PropelException
  * @see        BaseObject::setDeleted()
  * @see        BaseObject::isDeleted()
  */
 public function delete($con = null)
 {
     if ($this->isDeleted()) {
         throw new PropelException("This object has already been deleted.");
     }
     if ($con === null) {
         $con = Propel::getConnection(TranslationPeer::DATABASE_NAME);
     }
     try {
         $con->begin();
         TranslationPeer::doDelete($this, $con);
         $this->setDeleted(true);
         $con->commit();
     } catch (PropelException $e) {
         $con->rollback();
         throw $e;
     }
 }