updatedTimestamps() updatedTimestamps() Now we tell doctrine that before we persist or update we call the updatedTimestamps() function.