fix doctrine events