/** * @return \yii\db\ActiveQuery */ public function getUpvotes() { return $this->hasMany(YBoardUpvoted::className(), ['member_id' => 'id']); }