getRepository(SummitEmailFlowType::class); $flow = $repository->findOneBy([ "name" => "Presentation Submissions" ]); SummitEmailFlowTypeSeeder::createEventsTypes( [ [ 'name' => PresentationModeratorNotificationEmail::EVENT_NAME, 'slug' => PresentationModeratorNotificationEmail::EVENT_SLUG, 'default_email_template' => PresentationModeratorNotificationEmail::DEFAULT_TEMPLATE ] ], $flow ); $em->persist($flow); $em->flush(); } /** * @param Schema $schema */ public function down(Schema $schema):void { } }