protected function updateModifications() { $time = time(); $this->lastAttributeModified = $time; $this->lastModified = $time; }