public function getContent() { return $this->hasOne(TopicContent::className(), ['topic_id' => 'id'])->select(['topic_id', 'content']); }
/** * @return \yii\db\ActiveQuery */ public function getTopicContent() { return $this->hasOne(TopicContent::className(), ['topic_id' => 'topic_id']); }