/** * @return \yii\db\ActiveQuery */ public function getTblUsers() { return $this->hasMany(TblUser::className(), ['status_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getAuthor() { return $this->hasOne(TblUser::className(), ['id' => 'author_id']); }