- Timestamp:
- 06/23/11 21:18:44 (10 years ago)
- Location:
- trunk/server/www/app
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/www/app/models/job.php
r372 r411 47 47 public $actsAs = array('Containable'); 48 48 49 /** 50 * Delete any existing result and re-schedule the job for a fresh rendering 51 */ 52 public function rerun() 53 { 54 if ($result_id = $this->field('result_id')) { 55 $this->Result->delete($result_id); 56 } 57 58 $this->save(array( 59 'factory_id' => '', 60 'state' => self::STATE_QUEUED, 61 'failures' => 0, 62 'locked' => '0000-00-00 00:00:00', 63 )); 64 } 65 49 66 /** 50 67 * Manually update the counterCaches for Request -
trunk/server/www/app/models/result.php
r383 r411 57 57 * A result can have multiple ODF validators 58 58 */ 59 public $hasMany = array('Validator' => array('foreignKey' => 'parent_id' ));59 public $hasMany = array('Validator' => array('foreignKey' => 'parent_id', 'dependent' => true)); 60 60 61 61 /** @var array The result is a file */
Note: See TracChangeset
for help on using the changeset viewer.