switched to using a custom doctrine type instead of subscribing to doctrine events