Skip to content

Instantly share code, notes, and snippets.

View Celldweller's full-sized avatar

Sascha Wohlgemuth Celldweller

View GitHub Profile
class MyCompany_MyModule_Model_MySql_Subscription
extends Mage_Core_Model_MySql4_Abstract {
public function _construct() {
// Table resource, primary key
$this->_init('mymodule/mymodule', 'customer_entity_id');
// The primary key is not an auto_increment field
$this->_isPkAutoIncrement = false;
}
}
@Celldweller
Celldweller / 0_reuse_code.js
Created October 17, 2013 08:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console