/**
  * Overriding on the delete method
  *
  * @param      PropelPDO $con
  * @return     void
  * @see        parent::delete()
  */
 public function delete(PropelPDO $con = null)
 {
     $this->clearRelevantCache();
     $this->deleteReferenceInTasks();
     $con = Propel::getConnection();
     $ret = null;
     try {
         $con->beginTransaction();
         $this->copyObjectToTrashBin();
         $ret = parent::delete($con);
         $con->commit();
     } catch (Exception $e) {
         $con->rollback();
         throw $e;
     }
     return $ret;
 }
 /**
  * Returns a peer instance associated with this om.
  *
  * Since Peer classes are not to have any instance attributes, this method returns the
  * same instance for all member of this class. The method could therefore
  * be static, but this would prevent one from overriding the behavior.
  *
  * @return     PcUsersContextsPeer
  */
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new PcUsersContextsPeer();
     }
     return self::$peer;
 }