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