Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1921 Rev 1922
Línea 142... Línea 142...
142
    public function fetchFiveForoJoinTopic($group_id,$topic_type)
142
    public function fetchFiveForoJoinTopic($group_id,$topic_type)
143
    {
143
    {
144
        $prototype = new Feed();
144
        $prototype = new Feed();
145
        $select = $this->sql->select();
145
        $select = $this->sql->select();
146
        $select->from(['t' => TopicMapper::_TABLE]);
146
        $select->from(['t' => TopicMapper::_TABLE]);
147
        $select->join(['f' => self::_TABLE], 'f.topic_id = t.id', []);    
147
        $select->join(['f' => self::_TABLE], 'f.topic_id = t.id', []);
-
 
148
        $select->where->equalTo('f.group_id', $group_id);
-
 
149
      
-
 
150
        $select->order('added_on DESC');      
Línea 148... Línea 151...
148
 
151
 
149
        $hydrator   = new ObjectPropertyHydrator();
152
        $hydrator   = new ObjectPropertyHydrator();
Línea 150... Línea 153...
150
        $resultset  = new HydratingResultSet($hydrator, $prototype);
153
        $resultset  = new HydratingResultSet($hydrator, $prototype);