Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1918 Rev 1921
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
        $select->where->equalTo('f.status', Feed::STATUS_PUBLISHED);
-
 
150
        $select->where->equalTo('t.type', $topic_type);
-
 
151
        $select->where->equalTo('t.status', Topic::STATUS_ACTIVE);
-
 
152
      
-
 
153
        $select->order('added_on DESC');      
-
 
Línea 154... Línea 148...
154
 
148
 
155
        $hydrator   = new ObjectPropertyHydrator();
149
        $hydrator   = new ObjectPropertyHydrator();
Línea 156... Línea 150...
156
        $resultset  = new HydratingResultSet($hydrator, $prototype);
150
        $resultset  = new HydratingResultSet($hydrator, $prototype);