Closed crism closed 9 years ago
Actually, the user is linked to by a job, which is in turn linked to by a document, so those three things must be deleted in that (reverse) order.
Code review requested.
@crism, I don't know this codebase, but at a glance this looks good. @axfelix, mind taking a peek?
Looks good! I like the nested deletion like we discussed on slack, and emails are unique identifiers in the DB, so everything makes sense to me. Commenting certainly meets my standards too, though my commenting standards are very low :) Excellent first real commit. Thanks.
I think that fixes it; merging into dev/install-notes
, but we’re not out of the woods yet!
It looks like
createTestData()
makes a user and a job, butcleanTestData()
then attempts to delete the user, but not the job linked to the user.