Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
afterDestroy not called on failed destroy; tests added for other afterXXX handlers on error #249
Added functionality and tests for afterDestroy error cases.
Also added tests for prevention of afterCreate and afterUpdate in error cases, both already implemented.
A thought: what if all of these afterXXX handlers were still called on error, but the model's errors field had been set? That would allow anything set up in beforeCreate to be cleaned up in afterCreate, even if an error happened.