Example #1
0
 /**
  * Determines if the model is currently dirty.
  *
  * @api
  * @return  bool
  */
 public function isDirty()
 {
     return true === $this->attributes->areDirty() || true === $this->hasOneEmbeds->areDirty() || true === $this->hasManyEmbeds->areDirty();
 }
Example #2
0
 /**
  * Determines if the model is currently dirty.
  * Checks against the attribute and relationship dirty states.
  *
  * @api
  * @return  bool
  */
 public function isDirty()
 {
     return true === $this->attributes->areDirty() || true === $this->hasOneRelationships->areDirty() || true === $this->hasManyRelationships->areDirty();
 }