Skip to content

How to fill other columns of a user table when creating a new user #461

Answered by kenjis
sammyskills asked this question in Q&A
Discussion options

You must be logged in to vote

You need to extend UserModel and use it.

  1. If you add columns in users table, add the columns to UserModel::$allowedFields.
  2. If you add columns in auth_identities table, you need to call UserIdentityModel::save() after calling $users->save().

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@kenjis
Comment options

@sammyskills
Comment options

@sammyskills
Comment options

@kenjis
Comment options

@sammyskills
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kenjis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants