public function getSubscribedEvents() { return [Events::preFlush, Events::onFlush, Events::postFlush]; }