Doctrine events and extensions