Exemplo n.º 1
0
 public function getAdminUser()
 {
     return $this->hasOne(AdminUser::className(), ['id' => 'author']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUser()
 {
     return $this->hasOne(AdminUser::className(), ['user_id' => 'user_id']);
 }