an model.attach method