Skip to content

Instantly share code, notes, and snippets.

@brankoajzele
Created December 4, 2011 12:32
Show Gist options
  • Save brankoajzele/1430086 to your computer and use it in GitHub Desktop.
Save brankoajzele/1430086 to your computer and use it in GitHub Desktop.
Inchoo_Phonebook Magento Test Extension: app/code/local/Inchoo/Phonebook/Model/User.php
<?php
class Inchoo_Phonebook_Model_User extends Mage_Core_Model_Abstract
{
/**
* Maps to the array key from Setup.php::getDefaultEntities()
*/
const ENTITY = 'inchoo_phonebook_user';
protected $_eventPrefix = 'inchoo_phonebook';
protected $_eventObject = 'user';
function _construct()
{
$this->_init('inchoo_phonebook/user');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment