Created
May 23, 2011 19:25
-
-
Save eminetto/987356 to your computer and use it in GitHub Desktop.
Comments
This file contains hidden or 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 | |
/** | |
* Modelo da tabela comments | |
* | |
*/ | |
class Application_Model_Comments extends Zend_Db_Table_Abstract | |
{ | |
protected $_name = 'comments'; | |
protected $_referenceMap = array( | |
'Post' => array ( | |
'columns' => array('post_id'), | |
'refTableClass' => 'Posts', | |
'refColumns' => array('id') | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment