Changeset 779 for trunk/app/models

Show
Ignore:
Timestamp:
09/24/08 15:20:15 (8 weeks ago)
Author:
aarkerio
Message:

Test Unit fixed

Files:
1 modified

Legend:

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

    r756 r779  
    310310 /** 
    311311 * classElements  
    312  * Get class (group) active elements (Webquest, Test, Trasures, Forums, etc) 
     312 * Get class (vGroup) active elements (Webquest, Test, Scavenger, Forums, etc) 
    313313 * this method is used in show() method, vclassrooms_controller.php 
    314314 * @param  integer $vclassroom_id  description 
     
    321321  try{    
    322322 
    323    $this->unbindModel(array('hasAndBelongsToMany'=>array('Test', 'Webquest', 'Treasure'))); 
    324    
     323   $this->unbindModel(array('hasAndBelongsToMany'=>array('Test', 'Webquest', 'Treasure'),  
     324                            'hasMany'            =>array('Participation', 'Report', 'Chat') 
     325                     )); 
     326  
    325327   $this->bindModel(array( 
    326328                          'belongsTo'           =>array('Ecourse'=>array('fields'=>'id, title')), 
     
    359361 
    360362   $data = $this->find($conditions); 
    361  
     363   //die(debug($data)); 
    362364   return $data; 
    363365  }