Opened 9 years ago

Last modified 9 years ago

#25086 closed New feature

Allow mass-update of fields in unpersisted model instances — at Version 1

Reported by: Yoong Kang Lim Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Yoong Kang Lim)

Sometimes we have an unpersisted model instance generated from, say, a factory. Before saving this to the database, we might want to do some additional processing to update the fields.

I think it's a good idea to provide a helper method in the Model class to mass update the fields, particularly if it's a model with many fields.

Change History (1)

comment:1 by Yoong Kang Lim, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top