예제 #1
0
 /**  User model relation  */
 public function getUser()
 {
     return $this->hasOne(User::className(), ['id' => 'user_id']);
 }