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