Skip to content

Instantly share code, notes, and snippets.

@davefreiman
Created September 22, 2014 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davefreiman/186860c39369973ff9fa to your computer and use it in GitHub Desktop.
Save davefreiman/186860c39369973ff9fa to your computer and use it in GitHub Desktop.
<?php
class Demac_Casl_Model_Resource_Subscriber extends Mage_Core_Model_Resource_Db_Abstract
{
protected function _construct()
{
$this->_init('demac_casl/subscriber', 'entity_id');
}
public function loadBySubscriberId($subscriberId)
{
return Mage::getModel('demac_casl/subscriber')->load($subscriberId ,'subscriber_id');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment