Exemple #1
0
 /**
  * @return array
  * @throws \Exception
  */
 public function getChangedProperties()
 {
     if (!$this->original) {
         throw new \Exception('No original snapshot taken');
     }
     $diff = array_diff_assoc($this->getPropertiesAsArray(), $this->original->getPropertiesAsArray());
     return $diff;
 }