hajtest
Current file: D:\websites\haj\application\models\Categories.php
Legend: executed not executed dead code

  Coverage
  Classes Functions / Methods Lines
Total
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 9
 
Categories
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 9
 public static function findByInstructorIdentJoinWorkshops($ident)
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 8


       1                 : <?php                                                                                           
       2                 :                                                                                                 
       3                 : /**                                                                                             
       4                 :  * Categories                                                                                   
       5                 :  *                                                                                               
       6                 :  * This class has been auto-generated by the Doctrine ORM Framework                             
       7                 :  *                                                                                               
       8                 :  * @package    ##PACKAGE##                                                                      
       9                 :  * @subpackage ##SUBPACKAGE##                                                                   
      10                 :  * @author     ##NAME## <##EMAIL##>                                                             
      11                 :  * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $                          
      12                 :  */                                                                                             
      13                 : class Categories extends BaseCategories                                                         
      14               0 : {                                                                                               
      15                 :         public static function findByInstructorIdentJoinWorkshops($ident)                       
      16                 :     {                                                                                           
      17               0 :         $today = date('Y-m-d');                                                                 
      18                 :        // return                                                                                
      19               0 :         $q = Doctrine_Query::create()                                                           
      20               0 :                 ->select('c.*, w.*')                                                            
      21               0 :                 ->from('Categories c')                                                          
      22               0 :                 ->leftJoin('c.Instructors i')                                                   
      23               0 :                 ->leftJoin("c.Workshops w ON c.id = w.category_id AND w.start_date > ?", $today)
					
      24               0 :                 ->where('i.ident = ?', $ident);                                                 
      25                 :               // ->having('w.start_date > ?', $today)                                           
      26                 :                 //->execute();                                                                  
      27               0 :          exit($q->getSqlQuery());                                                               
      28                 :     }                                                                                           

Generated by PHPUnit 3.4.15 and Xdebug 2.1.0rc1 using PHP 5.3.1 at Mon Jan 17 15:42:18 PST 2011.