public static function doDeleteAll($tableName, PropelPDO $con, $databaseName = null)
    {
        try {
            $db = Propel::getDB($databaseName);
            if ($db->useQuoteIdentifier()) {
                $tableName = $db->quoteIdentifierTable($tableName);
            }
            $sql = "DELETE FROM " . $tableName;
            $stmt = $con->prepare($sql);
            $stmt->execute();

            return $stmt->rowCount();
        } catch (Exception $e) {
            Propel::log($e->getMessage(), Propel::LOG_ERR);
            throw new PropelException(sprintf('Unable to execute DELETE ALL statement [%s]', $sql), $e);
        }
    }