Show
Ignore:
Timestamp:
07/07/08 20:31:55 (5 months ago)
Author:
aarkerio
Message:

Adding annotations

Files:
1 modified

Legend:

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

    r535 r630  
    88class Lesson extends AppModel 
    99{ 
    10     // Its always good practice to include this variable. 
    11     public $name        = 'Lesson'; 
     10  // Its always good practice to include this variable. 
     11  public $name        = 'Lesson'; 
    1212     
    1313  public $belongsTo = array('User' => 
     
    2424                  ) 
    2525                ); 
    26      
    27     public $validate = array( 
     26 
     27  public $hasMany = array('CommentsLesson' => 
     28                        array('className'     => 'CommentsLesson', 
     29                  'conditions'    =>  null, 
     30                  'order'         => 'CommentsLesson.created', 
     31                  'limit'         => null, 
     32                  'foreignKey'    => 'lesson_id', 
     33                  'dependent'     => true, 
     34                      'exclusive'     => false, 
     35                      'finderQuery'   => '' 
     36                      ) 
     37                 );   
     38 
     39  public $validate = array( 
    2840      'title' => VALID_NOT_EMPTY,         //'/[a-z0-9\_\-]{3,}$/i', 
    2941      'body' => VALID_NOT_EMPTY,