backend/models/search/ColleaguesForCollaborationSearch.php
/**
     * Creates data provider instance with search query applied
     *
     * @param \common\models\UserCollaborations $UserCollaboration
     * @return ActiveDataProvider
     */
Creates data provider instance with search query applied
@param \common\models\UserCollaborations $UserCollaboration
@return ActiveDataProvider
Creates data provider instance with search query applied @param \ common \ models \ UserCollaborations $UserCollaboration @return ActiveDataProvider
public function search($UserCollaboration)
    {
        $queryEvents = self::find()
            ->where([
                'collaboration_id' => $UserCollaboration->collaboration_id,
            ])
            ;
        $dataProvider = new ActiveDataProvider([
            'query' => $queryEvents,
            'sort'=> false,
            'pagination' => false,
        ]);
        return $dataProvider;
    }
public function search ( $ UserCollaboration ) { $ queryEvents = self :: find ( ) -> where ( [ 'collaboration_id' => $ UserCollaboration -> collaboration_id , ] ) ; $ dataProvider = new ActiveDataProvider ( [ 'query' => $ queryEvents , 'sort' => false , 'pagination' => false , ] ) ; return $ dataProvider ; }
Creates data provider instance with search query applied
 @param \common\models\UserCollaborations $UserCollaboration
 @return ActiveDataProvider
Creates data provider instance with search query applied @param \ common \ models \ UserCollaborations $UserCollaboration @return ActiveDataProvider
/*
            ->andWhere('(user_id != :user_id) OR (user_id IS NULL)', [
                'user_id' => $UserCollaboration->user_id,
            ])*/