Closed innobrig closed 5 years ago
The issue is coming from thr DBDiff library, not from Diff itself.
These lines assume all diff operations in a diff have a getNewValue method, which is not the case: https://github.com/DBDiff/DBDiff/blob/master/src/SQLGen/DiffToSQL/UpdateDataSQL.php#L17-L18
Looks like someone already tried to fix this but failed to do so properly: https://github.com/DBDiff/DBDiff/commit/b2d4bf04b38fd2db552b66f7363c65ced1fbce43#diff-155365a800ce69d0660404707ac171d1
I don't know what that DBDiff code is doing, but it looks like you can at least avoid the PHP error by using method_exists or checking the type of DiffOp.
I'm an idiot, I meant to post this as a DBDiff issue but had too many windows open and posted it here; my apologies.
In case someone else is running into this, I posted patch to fix this: https://github.com/DBDiff/DBDiff/pull/90
I'm testing your tool and it seems that something is not quite right (I've tried both with v2 and v3 of diff/diff):
Thanks for any hints.