Changeset 632 for trunk/app/models
- Timestamp:
- 07/07/08 22:23:03 (5 months ago)
- Location:
- trunk/app/models
- Files:
-
- 2 modified
-
annotation.php (modified) (2 diffs)
-
lesson.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/annotation.php
r630 r632 13 13 'conditions' => '', 14 14 'order' => '', 15 'foreignKey' => 'user_id'15 'foreignKey' => 'user_id' 16 16 ), 17 17 'Lesson' => … … 19 19 'conditions' => '', 20 20 'order' => null, 21 'foreignKey' => 'lersson_id'21 'foreignKey' => 'lesson_id' 22 22 ) 23 23 ); 24 24 25 25 public $validate = array( 26 'comment' => VALID_NOT_EMPTY, 27 'user_id' => VALID_NOT_EMPTY 26 'comment' => VALID_NOT_EMPTY, 27 'user_id' => VALID_NOT_EMPTY, 28 'lesson_id' => VALID_NOT_EMPTY 28 29 ); 29 30 /* -
trunk/app/models/lesson.php
r630 r632 25 25 ); 26 26 27 public $hasMany = array(' CommentsLesson' =>28 array('className' => ' CommentsLesson',27 public $hasMany = array('Annotation' => 28 array('className' => 'Annotation', 29 29 'conditions' => null, 30 'order' => ' CommentsLesson.created',30 'order' => 'Annotation.created', 31 31 'limit' => null, 32 32 'foreignKey' => 'lesson_id',
