Fixing the order of doctrine events firing