Skip to content

Instantly share code, notes, and snippets.

@rubytastic
Created December 28, 2010 09:34
Show Gist options
  • Save rubytastic/757088 to your computer and use it in GitHub Desktop.
Save rubytastic/757088 to your computer and use it in GitHub Desktop.
// DELETE ALL DATA OF CURRENT IMPORT
// BASED ON ORDER_ID (SQL)
$table = new Application_Model_DbTable_Data();
array(':order_id' => $Session->system_id);
$query = $table->getAdapter()->query('DELETE FROM data WHERE order_id = :order_id');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment