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 )
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.
Note:
See TracTickets
for help on using tickets.