Changeset 776 for trunk/app/models
- Timestamp:
- 09/23/08 22:04:26 (2 months ago)
- Files:
-
- 1 modified
-
trunk/app/models/entry.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/entry.php
r734 r776 24 24 public $hasMany = array('Comment' => 25 25 array('className' => 'Comment', 26 'conditions' => null,26 'conditions' => 'Comment.status = 1', 27 27 'order' => 'Comment.created', 28 28 'limit' => null, … … 52 52 public function getComments($blogger_id) 53 53 { 54 $this->unbindAll(); 55 56 $this->bindModel(array('hasMany' => array('Comment' => 57 array('className' => 'Comment', 58 'conditions' => null, 59 'order' => 'Comment.created', 60 'limit' => null, 61 'foreignKey' => 'entry_id', 62 'dependent' => true, 63 'exclusive' => false, 64 'finderQuery' => '' 65 ) 66 ))); 67 54 68 $conditions = array('Entry.user_id'=>$blogger_id); 55 69 $fields = array('Entry.title', 'Entry.id');
