Changeset 537 for trunk/app/models
- Timestamp:
- 05/20/08 20:43:23 (7 months ago)
- Location:
- trunk/app/models
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/discussion.php
r407 r537 11 11 public $name = 'Discussion'; 12 12 13 public $belongsTo = array('News' =>13 /* public $belongsTo = array('News' => 14 14 array('className' => 'News', 15 15 'conditions' => null, … … 21 21 'finderQuery' => '' 22 22 ) 23 ); 23 ); */ 24 24 25 25 public $validate = array( -
trunk/app/models/news.php
r535 r537 20 20 'Theme' => array( 21 21 'className' => 'Theme', 22 'foreignKey' => 'theme_id' 22 'foreignKey' => 'theme_id' 23 23 ) 24 24 ); … … 26 26 public $hasMany = array( 27 27 '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 ); 32 33 33 34 public $validate = array( -
trunk/app/models/theme.php
r535 r537 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-200 75 * Chipotle Software 6 * GPLv3 manuel< at>mononeurona.org4 * Manuel Montoya 2002-2008 5 * Chipotle Software tm 6 * GPLv3 manuel<ARROBA>mononeurona<PUNTO>org 7 7 */ 8 class Theme extends AppModel 9 { 8 class Theme extends AppModel { 9 10 10 public $name = 'Theme'; 11 11 12 public $hasMany = array(12 /* public $hasMany = array( 13 13 "News" => array( 14 14 "className" => "News", 15 15 "foreignKey" => "theme_id" 16 )); 16 )); */ 17 17 18 18 public $validate = array(
