Love Fuel?    Donate

FuelPHP Forums

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?
  • HarroHarro
    Accepted Answer
    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!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion