Changeset 630 for trunk/app/models
- Timestamp:
- 07/07/08 20:31:55 (5 months ago)
- Location:
- trunk/app/models
- Files:
-
- 1 added
- 1 modified
-
annotation.php (added)
-
lesson.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/lesson.php
r535 r630 8 8 class Lesson extends AppModel 9 9 { 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'; 12 12 13 13 public $belongsTo = array('User' => … … 24 24 ) 25 25 ); 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( 28 40 'title' => VALID_NOT_EMPTY, //'/[a-z0-9\_\-]{3,}$/i', 29 41 'body' => VALID_NOT_EMPTY,
