update method is used to modify records, it always has to be used with the
where method and a
filter criteria so we know what should be updated. In order to select a field, you need to import the
Field Module first. Creating a filter using the conditional methods below provide you with a lot of flexibility on when a record should be updated.
You can use the following conditional methods to create a filter:
In order to obtain deeper insights, please visit the API reference