Recalculate the signature
Feature or problem being solved
An easy way to recalulate the signature of a ledger entry
Further details
I have the case where I need to add some additional data into the modified column of a ledger entry for our datawarehouse-team. Nothing fancy, but in our case we create an entity and I can leave the status column empty because the database has a default for this column, but our datawarehouse-team needs to track the initial status too inside of the ledger entry.
So the only way for the existing entires is, that I have to alter the ledger entries with no status info and add them but unfortunatly the signature will be invalid after the update.
Is there an easy way to do something like this:
Ledger::find(1)->updateSignature();
or at least a method to get the current signature and update it manually?