function setDisplayInManageSubscriptionPage(bool $state): void { $this->displayInManageSubscriptionPage = $state; } /** * Returns connect operand from the first filter, when doesn't exist, then returns a default value. * @return string */ public function getFiltersConnectOperator(): string { $firstFilter = $this->getDynamicFilters()->first(); $filterData = $firstFilter ? $firstFilter->getFilterData() : null; if (!$firstFilter || !$filterData) { return DynamicSegmentFilterData::CONNECT_TYPE_AND; } return $filterData->getParam('connect') ?: DynamicSegmentFilterData::CONNECT_TYPE_AND; } }
Fatal error: Uncaught ReflectionException: Class "MailPoet\Entities\SegmentEntity" does not exist in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php:45 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php(45): ReflectionClass->__construct('MailPoet\\Entiti...') #1 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(276): MailPoetVendor\Doctrine\Persistence\Mapping\RuntimeReflectionService->getClass('MailPoet\\Entiti...') #2 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(435): MailPoetVendor\Doctrine\ORM\Mapping\ClassMetadataInfo->wakeupReflection(Object(MailPoetVendor\Doctrine\Persistence\Mapping\RuntimeReflectionService)) #3 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(106): MailPoetVendor\Doctrine\ORM\Mapping\ClassMetadataFactory->wakeupReflection(Object(MailPoetVendor\Doctrine\ORM\Mapping\ClassMetadata), Object(MailPoetVendor\Doctrine\Persistence\Mapping\RuntimeReflectionService)) #4 /htdocs/wp-content/plugins/mailpoet/lib/Doctrine/TablePrefixMetadataFactory.php(44): MailPoetVendor\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('MailPoet\\Entiti...') #5 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(135): MailPoet\Doctrine\TablePrefixMetadataFactory->getMetadataFor('MailPoet\\Entiti...') #6 /htdocs/wp-content/plugins/mailpoet/lib/Doctrine/Repository.php(36): MailPoetVendor\Doctrine\ORM\EntityManager->getClassMetadata('MailPoet\\Entiti...') #7 /htdocs/wp-content/plugins/mailpoet/lib/Segments/SegmentsRepository.php(51): MailPoet\Doctrine\Repository->__construct(Object(MailPoetVendor\Doctrine\ORM\EntityManager)) #8 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4580): MailPoet\Segments\SegmentsRepository->__construct(Object(MailPoetVendor\Doctrine\ORM\EntityManager), Object(MailPoet\Newsletter\Segment\NewsletterSegmentRepository), Object(MailPoet\Form\FormsRepository), Object(MailPoet\WP\Functions), Object(MailPoet\Logging\LoggerFactory)) #9 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3913): MailPoetGenerated\FreeCachedContainer->getSegmentsRepositoryService() #10 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4610): MailPoetGenerated\FreeCachedContainer->getWelcomeSchedulerService() #11 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2635): MailPoetGenerated\FreeCachedContainer->getWPService() #12 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2540): MailPoetGenerated\FreeCachedContainer->getPopulatorService() #13 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2602): MailPoetGenerated\FreeCachedContainer->getActivatorService() #14 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #15 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #16 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #17 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #18 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #19 /htdocs/wp-settings.php(522): include_once('/htdocs/wp-cont...') #20 /htdocs/wp-config.php(83): require_once('/htdocs/wp-sett...') #21 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #22 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #23 /htdocs/index.php(17): require('/htdocs/wp-blog...') #24 {main} thrown in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php on line 45