Changeset 779 for trunk/app/models
- Timestamp:
- 09/24/08 15:20:15 (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/app/models/vclassroom.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/vclassroom.php
r756 r779 310 310 /** 311 311 * classElements 312 * Get class ( group) active elements (Webquest, Test, Trasures, Forums, etc)312 * Get class (vGroup) active elements (Webquest, Test, Scavenger, Forums, etc) 313 313 * this method is used in show() method, vclassrooms_controller.php 314 314 * @param integer $vclassroom_id description … … 321 321 try{ 322 322 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 325 327 $this->bindModel(array( 326 328 'belongsTo' =>array('Ecourse'=>array('fields'=>'id, title')), … … 359 361 360 362 $data = $this->find($conditions); 361 363 //die(debug($data)); 362 364 return $data; 363 365 }
