Defining Relationships
1 2 3 4 56 7 8 9 1011 12 13 14 1516 17 18 | class BugsProducts extends Zend_Db_Table_Abstract { protected $_name = 'bugs_products'; protected $_referenceMap = array( 'Bug' => array( 'columns' => array('bug_id'), 'refTableClass' => 'Bugs', 'refColumns' => array('bug_id') ), 'Product' => array( 'columns' => array('product_id'), 'refTableClass' => 'Products', 'refColumns' => array('product_id') ) ); } |
Comments
You must login before commenting on a snippet. If you do not have an account, please register.