Beispiel #1
0
 /**
  * Discards all changes.
  *
  * @return $this
  */
 public function resetChanges()
 {
     $this->attributes->setRaw($this->changedAttributes);
     $this->changedAttributes = [];
     return $this;
 }