Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 10986 Rev 10988
Línea 615... Línea 615...
615
                    $myt  = $feedMapper->fetchOneByUuid($myt_id);
615
                    $myt  = $feedMapper->fetchOneByUuid($myt_id);
616
                    $feed->company_id       = $currentCompany->id;
616
                    $feed->company_id       = $currentCompany->id;
617
                    $feed->group_id         = null;
617
                    $feed->group_id         = null;
618
                    $feed->user_id          = $owner->user_id;
618
                    $feed->user_id          = $owner->user_id;
619
                    $feed->myt_id           = $myt->id;
619
                    $feed->myt_id           = $myt->id;
620
                    $feed->related_feed       = $myt->id;
620
                    $feed->related_feed     = $myt->id;
621
                    $feed->type             = Feed::TYPE_MYT;
621
                    $feed->type             = Feed::TYPE_MYT;
622
                    $feed->posted_or_shared = Feed::POSTED;
622
                    $feed->posted_or_shared = Feed::POSTED;
623
                    $feed->shared_with      = Feed::SHARE_WITH_PUBLIC;
623
                    $feed->shared_with      = Feed::SHARE_WITH_PUBLIC;
624
                }else{
624
                }else{
625
                    $feed->company_id       = $currentCompany->id;
625
                    $feed->company_id       = $currentCompany->id;
Línea 892... Línea 892...
892
                $select = $queryMapper->getSql()->select(FeedMapper::_TABLE);
892
                $select = $queryMapper->getSql()->select(FeedMapper::_TABLE);
893
                $select->columns(['id']);
893
                $select->columns(['id']);
894
                $select->where->equalTo('status', Feed::STATUS_PUBLISHED);
894
                $select->where->equalTo('status', Feed::STATUS_PUBLISHED);
895
                $select->where->equalTo('company_id',$currentCompany->id);
895
                $select->where->equalTo('company_id',$currentCompany->id);
896
                $select->where->equalTo('title', '');
896
                $select->where->equalTo('title', '');
-
 
897
                $select->where->equalTo('related_feed', 'id');
897
                $select->where->and->equalTo('type', Feed::TYPE_MYT);
898
                $select->where->and->equalTo('type', Feed::TYPE_MYT);
898
                $select->order('added_on desc');
899
                $select->order('added_on desc');
Línea 899... Línea 900...
899
 
900