src/Extensions/Meta/ModelWithMeta.php
private function set_last_updated_at() {

		if ( ! static::get_table() instanceof TimestampedTable ) {
			return;
		}

		$dirty = $this->is_dirty();

		$this->set_attribute( static::get_table()->get_updated_at_column(), $this->fresh_timestamp() );

		// If the model is dirty, we don't want to commit our save since the user should already be calling save.
		if ( ! $dirty ) {
			$this->save();
		}
	}
private function set_last_updated_at() {

		if ( ! static::get_table() instanceof TimestampedTable ) {
			return;
		}

		$dirty = $this->is_dirty();

		$this->set_attribute( static::get_table()->get_updated_at_column(), $this->fresh_timestamp() );

		// If the model is dirty, we don't want to commit our save since the user should already be calling save.
		if ( ! $dirty ) {
			$this->save();
		}
	}
Set the model's last updated date whenever meta changes.