Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4689 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4689 Rev 6481
Línea 75... Línea 75...
75
        
75
        
76
        $prototype = new MyCoachAnswer();
76
        $prototype = new MyCoachAnswer();
77
        return $this->executeFetchAllObject($select, $prototype);
77
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 78...
-
 
78
    }
-
 
79
    
-
 
80
    /**
-
 
81
     *
-
 
82
     * @param int $question_id
-
 
83
     * @return MyCoachAnswer
-
 
84
     */
-
 
85
    public function fetchOneLastAnswerByQuestionId($question_id)
-
 
86
    {
-
 
87
        
-
 
88
        $select = $this->sql->select(self::_TABLE);
-
 
89
        $select->where->equalTo('question_id', $question_id);
-
 
90
        $select->order('added_on DESC');
-
 
91
        
-
 
92
        
-
 
93
        $prototype = new MyCoachAnswer();
-
 
94
        return $this->executeFetchOneObject($select, $prototype);
Línea 78... Línea 95...
78
    }
95
    }
79
    
96