Changeset 772 for trunk/app/models

Show
Ignore:
Timestamp:
09/22/08 10:09:12 (2 months ago)
Author:
aarkerio
Message:

New Unit Testing models

Files:
1 modified

Legend:

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

    r701 r772  
    1010class News extends AppModel 
    1111{ 
    12   public $name      = 'News'; 
     12 public $name      = 'News'; 
    1313     
    14   public $belongsTo  = array( 
     14 public $belongsTo  = array( 
    1515             'User' => array( 
    1616                             'className'    => 'User', 
     
    2424             ); 
    2525     
    26   public $hasMany  = array( 
     26 public $hasMany  = array( 
    2727             'Discussion' => array( 
    2828                                   'className'    => 'Discussion', 
     
    3232                         ); 
    3333 
    34 public $validate = array( 
     34 public $validate = array( 
    3535  'title' => array( 
    3636                   'rule'       => array('minLength', 4),