/** * Get array of db values that would be changed by a save. * @return array */ public function getUpdatedData() { $updateData = $this->table->augmentUpdatedDataArrayWithWhenAndByWhom($this->table->filterDataArrayForPhysicalColumns($this->data)); if ($updateData === $this->initialData) { return []; } else { return array_diff_assoc($updateData, $this->initialData); } }