Created
September 22, 2014 22:43
-
-
Save davefreiman/186860c39369973ff9fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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