My custom module observes the sales_order_place_after event, and creates a customer and associates the customer with the order by setting customerId for the order.
What works?
- Order is placed
- Customer is created
- The
customerIdis updated in the order database
What doesn't work?
- The
customerIdis instantly set back toNULLby another script
How can I find out what script updates the customerId to NULL again, after my observer is done running?