Skip to content

Instantly share code, notes, and snippets.

@brankoajzele
Created December 4, 2011 12:33
Show Gist options
  • Save brankoajzele/1430090 to your computer and use it in GitHub Desktop.
Save brankoajzele/1430090 to your computer and use it in GitHub Desktop.
Inchoo_Phonebook Magento Test Extension: app/code/local/Inchoo/Phonebook/Model/Resource/User.php
<?php
class Inchoo_Phonebook_Model_Resource_User extends Mage_Eav_Model_Entity_Abstract
{
public function __construct()
{
$resource = Mage::getSingleton('core/resource');
$this->setType(Inchoo_Phonebook_Model_User::ENTITY);
$this->setConnection(
$resource->getConnection('inchoo_phonebook_read'),
$resource->getConnection('inchoo_phonebook_write')
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment