Changeset 617 for trunk/app/models

Show
Ignore:
Timestamp:
07/01/08 19:06:58 (5 months ago)
Author:
aarkerio
Message:

Little fixes

Location:
trunk/app/models
Files:
2 modified

Legend:

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

    r352 r617  
    5050            'message' => 'Mimimum 8 characters long' 
    5151        ), 
    52         'code' => array( 
    53             'rule' => array('minLength', 4), 
    54             'allowEmpty' => false, 
    55             'message' => 'Mimimum 4 characters long' 
    56         ), 
    5752        'lang_id' => array( 
    5853            'rule' => 'numeric', 
  • trunk/app/models/vclassroom.php

    r577 r617  
    1111  public $name      = 'Vclassroom'; 
    1212     
    13   public $belongsTo = 'Ecourse'; 
     13  public $belongsTo = array('Ecourse' => 
     14                       array('className'  => 'Ecourse', 
     15                                 'conditions' => '', 
     16                             'order'      => '', 
     17                             'foreignKey' => 'ecourse_id' 
     18                        ) 
     19                ); 
    1420 
    1521  public $hasMany = array('Forum' =>