/** * @return \yii\db\ActiveQuery */ public function getSourceTopics() { return $this->hasMany(SourceTopic::className(), ['topic_id' => 'id'])->andFilterWhere(['NOT IN', 'scoopit_source_topic.source_id', $this->excludedNewsItems]); }
/** * @return \yii\db\ActiveQuery */ public function getSourceTopics() { return $this->hasMany(SourceTopic::className(), ['source_id' => 'id']); }