Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Application_Model_DbTable_Profiles extends Zend_Db_Table_Abstract
- {
- protected $_name = 'profiles';
- /**
- *
- */
- protected $_habtm = array(
- 'ethnicity_options',
- 'spoken_language_options',
- 'relationship_type_options'
- );
- public function __construct($config = array()) {
- parent::__construct($config);
- foreach($_habtm as $k=>$table_name)
- {
- if(strcasecmp($table_name, $this->_name))
- {
- $this->_habtm[$k] = $this->_name . "_" . $table_name;
- }
- else
- {
- $this->_habtm[$k] = $table_name . "_" . $this->_name;
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement