ORM::is_dirty PHP Method

is_dirty() public method

Check whether the given field has been changed since this object was saved.
public is_dirty ( $key )
    public function is_dirty($key)
    {
        return array_key_exists($key, $this->_dirty_fields);
    }

Usage Example

Example #1
0
 /**
  * Check whether the given field has changed since the object was created or saved
  *
  * @param  string $property
  * @return bool
  */
 public function is_dirty($property)
 {
     return $this->orm->is_dirty($property);
 }
ORM