Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to get the updated ORM fields?
Can you get the list of updated fields and values after ->save() is called on ORM model?
No, not after a save().
Before a save you can use is_changed() to see if there was a change, and get_diff() to get an array of the differences between the last original state (i.e. after get or the last save) and the current state. For changed relations, you'll get the PK or list of PK's of relations that have changed.
Harro as always in great help! Thank you!
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion