FYI: doAssociations() and doValidation() do it the same. I just copied it from there.