Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. class RunResult extends AppModel
  3. {
  4.    var $name = 'RunResult';
  5.    //Many-to-Many relationship between the Testcase model and Ticket model
  6.    var $hasMany = array(
  7.        'TestResult' => array(
  8.          'ClassName' => 'TestResult',
  9.          'foreignKey' => 'run_name'));
  10. }
  11. ?>
  12.  
  13. //Need to compare run_name with the name field in run_results
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement