Skip to content

Model Object

hasChanged()

hasChanged() — returns boolean

Available in: model Category: Change Functions

Returns true if the specified property (or any if none was passed in) has been changed but not yet saved to the database. Will also return true if the object is new and no record for it exists in the database.

NameTypeRequiredDefaultDescription
propertystringnoName of property to check for change.