Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 12984 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 12984 Rev 12985
Línea 133... Línea 133...
133
                    
133
                    
134
                    if ($question = $feedMapper->fetchOne($rel->feed_id)) {
134
                    if ($question = $feedMapper->fetchOne($rel->feed_id)) {
135
                        $questions [] = $question;
135
                        $questions [] = $question;
136
                    }
136
                    }
137
                }
-
 
138
 
-
 
139
                foreach ($questions as $question) {
-
 
140
                    $topicRelationships = $topicsMapper->fetchAllByFeedId($question->id);
-
 
141
                    $question->topics = [];
-
 
142
                
-
 
143
                   
-
 
144
                    foreach ($topicRelationships as $rel) {
-
 
145
                        $topic = $tagsMapper->fetchOne($rel->topic_id);
-
 
146
                        if ($topic) {
-
 
147
                            $question->topics []= $topic;
-
 
148
                        }
-
 
149
                    }
-
 
150
                    
-
 
151
                }
-
 
Línea 152... Línea 137...
152
 
137
                }
153
                
138
                
154
                foreach($tags as $tel){
139
                foreach($tags as $tel){
155
                    $badge = $tagsMapper->fetchOne($tel->topic_id);
140
                    $badge = $tagsMapper->fetchOne($tel->topic_id);