Show
Ignore:
Timestamp:
05/20/08 20:43:23 (8 months ago)
Author:
aarkerio
Message:

Discussions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/models/news.php

    r535 r537  
    2020             'Theme' => array( 
    2121                             'className'    => 'Theme',     
    22                              'foreignKey'   => 'theme_id' 
     22                             'foreignKey'   => 'theme_id'  
    2323                              ) 
    2424             ); 
     
    2626  public $hasMany  = array( 
    2727             'Discussion' => array( 
    28                              'className'    => 'Discussion', 
    29                              'foreignKey'   => 'new_id' 
    30                                ) 
    31              ); 
     28                                   'className'    => 'Discussion', 
     29                                   'foreignKey'   => 'new_id', 
     30                                   'conditions'   => 'Discussion.status = 1' 
     31                                   ) 
     32                         ); 
    3233 
    3334     public $validate = array(