Пример #1
0
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'userId']);
 }