You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extended UserModel class doesn't execute a function included in the beforeUpdate collection of callbacks #1054
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.2
Did you customize Shield?
I customized the UserModel class to include a function to generate a full name of a user from their first and last name before insert and before update. I also customized the User entity class to include two functions to set the first and last name of a user after cleaning the string input and performing formatting on it like capitalization.
What happened?
I altered the users table and added four columns on it i.e. fullname, firstname, lastname and mobile. Then extended the UserModel class to add a function that generates a full name beforeInsert and beforeUpdate. The problem arises when the beforeUpdate fails to generate the full name and save it on the users table but the beforeInsert works as expected. I use the full name column for search purposes. Here is the code am using:
changed the title [-]Bug: Extended UserModel class doesn't execute a function included in the beforeUpdate collection of callbacks[/-][+]Extended UserModel class doesn't execute a function included in the beforeUpdate collection of callbacks[/+]on Feb 28, 2024
Activity
[-]Bug: Extended UserModel class doesn't execute a function included in the beforeUpdate collection of callbacks[/-][+]Extended UserModel class doesn't execute a function included in the beforeUpdate collection of callbacks[/+]