This probably isn’t an xpdo problem/question per se, but my brain is too fried to sort it out any further right now.
I have a ’lastupdated’ field in my table that I’d like populated with the current timestamp when the record is updated. I auto-generated the schema from the table, and it looks like this:
<field key="lastUpdated" dbtype="timestamp" phptype="timestamp" null="false" default="CURRENT_TIMESTAMP" />
When working with straight php/mysql update statements, fields like this will typically update automatically with each submission. But with this form, it populated the field when the record was first written, but it hasn’t updated it with subsequent updates to the record.
Is it possible that this has anything to do with using xpdo? Or have I set up my field/table wrong?