Complex expressions

Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.

Literal arrays are omitted.

File Count Expression
/src/Sylius/Component/Addressing/Comparator/AddressComparator.php:271array_map(function ($value) { /**/ } , [$address->getCity( ), $address->getCompany( ), $address->getCountryCode( ), $address->getFirstName( ), $address->getLastName( ), $address->getPhoneNumber( ), $address->getPostcode( ), $address->getProvinceCode( ), $address->getProvinceName( ), $address->getStreet( ), ])
/src/Sylius/Behat/Page/Admin/Channel/CreatePage.php:1171return array_merge(parent::getDefinedElements( ), ['code' => '#sylius_channel_code', 'countries' => '#sylius_channel_countries', 'currencies' => '#sylius_channel_currencies', 'base_currency' => '#sylius_channel_baseCurrency', 'default_locale' => '#sylius_channel_defaultLocale', 'enabled' => '#sylius_channel_enabled', 'locales' => '#sylius_channel_locales', 'menu_taxon' => '#sylius_channel_menuTaxon', 'name' => '#sylius_channel_name', ])
/src/Sylius/Behat/Page/Admin/Channel/UpdatePage.php:1291return array_merge(parent::getDefinedElements( ), ['base_currency' => '#sylius_channel_baseCurrency', 'code' => '#sylius_channel_code', 'currencies' => '#sylius_channel_currencies', 'default_locale' => '#sylius_channel_defaultLocale', 'default_tax_zone' => '#sylius_channel_defaultTaxZone', 'enabled' => '#sylius_channel_enabled', 'locales' => '#sylius_channel_locales', 'menu_taxon' => '#sylius_channel_menuTaxon ~ .text', 'name' => '#sylius_channel_name', 'tax_calculation_strategy' => '#sylius_channel_taxCalculationStrategy', ])
/src/Sylius/Behat/Page/Admin/ProductAttribute/CreatePage.php:811return array_merge(parent::getDefinedElements( ), ['attribute_choice_list' => 'div[data-form-collection="list"]', 'attribute_choice_list_element' => '#sylius_product_attribute_configuration_choices_%index%_%localeCode%', 'code' => '#sylius_product_attribute_code', 'max' => '#sylius_product_attribute_configuration_max', 'min' => '#sylius_product_attribute_configuration_min', 'multiple' => 'label[for=sylius_product_attribute_configuration_multiple]', 'name' => '#sylius_product_attribute_translations_en_US_name', 'type' => '#sylius_product_attribute_type', 'translation' => '#sylius_product_attribute_translatable', ])
/src/Sylius/Behat/Page/Admin/Taxon/CreatePage.php:1651return array_merge(parent::getDefinedElements( ), ['code' => '#sylius_taxon_code', 'confirmation_button' => '#confirmation-button', 'description' => '#sylius_taxon_translations_en_US_description', 'images' => '#sylius_taxon_images', 'language_tab' => '[data-locale="%locale%"] .title', 'name' => '#sylius_taxon_translations_%language%_name', 'slug' => '#sylius_taxon_translations_%language%_slug', 'tree' => '.sylius-tree', 'tree_item' => '.sylius-tree__item a:contains("%taxon%")', ])
/src/Sylius/Behat/Page/Admin/Taxon/UpdatePage.php:2371return array_merge(parent::getDefinedElements( ), ['code' => '#sylius_taxon_code', 'description' => '#sylius_taxon_translations_en_US_description', 'enabled' => '#sylius_taxon_enabled', 'images' => '#sylius_taxon_images', 'language_tab' => '[data-locale="%locale%"] .title', 'name' => '#sylius_taxon_translations_en_US_name', 'parent' => '#sylius_taxon_parent', 'slug' => '#sylius_taxon_translations_%language%_slug', 'toggle_taxon_slug_modification_button' => '[data-locale="%locale%"] .toggle-taxon-slug-modification', ])
/src/Sylius/Behat/Page/Admin/TaxRate/CreatePage.php:681return array_merge(parent::getDefinedElements( ), ['amount' => '#sylius_tax_rate_amount', 'calculator' => '#sylius_tax_rate_calculator', 'category' => '#sylius_tax_rate_category', 'code' => '#sylius_tax_rate_code', 'end_date' => '#sylius_tax_rate_endDate_date', 'end_date_time' => '#sylius_tax_rate_endDate_time', 'name' => '#sylius_tax_rate_name', 'start_date' => '#sylius_tax_rate_startDate_date', 'start_date_time' => '#sylius_tax_rate_startDate_time', 'zone' => '#sylius_tax_rate_zone', ])
/src/Sylius/Behat/Page/Admin/Customer/ShowPage.php:1621return array_merge(parent::getDefinedElements( ), ['customer_email' => '#info .content.extra > a', 'customer_name' => '#info .content > a', 'customer_phone_number' => '#phone-number', 'default_address' => '#default-address', 'delete_account_button' => '#actions', 'flash_message' => '.ui.icon.positive.message .content p', 'group' => '.group', 'impersonate_button' => '#impersonate', 'no_account' => '#no-account', 'statistics' => '#statistics', 'registration_date' => '#info .content .date', 'subscribed_to_newsletter' => '#subscribed-to-newsletter', 'verified_email' => '#verified-email', ])
/src/Sylius/Behat/Context/Setup/PaymentContext.php:2081$paymentMethod = $this->paymentMethodExampleFactory->create(['name' => ucfirst($name), 'code' => $code, 'description' => $description, 'gatewayName' => $gatewayFactory, 'gatewayFactory' => $gatewayFactory, 'enabled' => true, 'channels' => ($addForCurrentChannel && $this->sharedStorage->has('channel')) ? [$this->sharedStorage->get('channel')] : [ ], ])
/src/Sylius/Behat/Context/Setup/ShippingContext.php:1541$shippingMethod = $this->shippingMethodExampleFactory->create(['name' => $name, 'enabled' => true, 'zone' => $this->getShippingZone( ), 'calculator' => ['type' => DefaultCalculators::FLAT_RATE, 'configuration' => $configuration, ], 'channels' => [$channel], ])
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:2041$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForVariantsScopeVariantChecker::TYPE, 'configuration' => ['variants' => $variantCodes], ]], [['type' => PercentageDiscountPriceCalculator::TYPE, 'configuration' => ['amount' => $discount], ]], )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:2321$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForVariantsScopeVariantChecker::TYPE, 'configuration' => ['variants' => [$variant->getCode( )]], ]], [['type' => FixedDiscountPriceCalculator::TYPE, 'configuration' => [$channel->getCode( ) => ['amount' => $discount / 100]], ]], )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:2601$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForProductScopeVariantChecker::TYPE, 'configuration' => ['products' => [$product->getCode( )]], ]], [['type' => FixedDiscountPriceCalculator::TYPE, 'configuration' => [$channel->getCode( ) => ['amount' => $discount / 100]], ]], )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:2881$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForTaxonsScopeVariantChecker::TYPE, 'configuration' => ['taxons' => [$taxon->getCode( )]], ]], [['type' => FixedDiscountPriceCalculator::TYPE, 'configuration' => [$channel->getCode( ) => ['amount' => $discount / 100]], ]], )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:3161$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForTaxonsScopeVariantChecker::TYPE, 'configuration' => ['taxons' => [$taxon->getCode( )]], ]], [['type' => PercentageDiscountPriceCalculator::TYPE, 'configuration' => ['amount' => $discount], ]], )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:3441$catalogPromotion = $this->createCatalogPromotion(name : $name, channels : [$channel->getCode( )], scopes : [['type' => InForVariantsScopeVariantChecker::TYPE, 'configuration' => ['variants' => [$variant->getCode( )]], ]], actions : [['type' => PercentageDiscountPriceCalculator::TYPE, 'configuration' => ['amount' => $discount], ]], )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:5181$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForProductScopeVariantChecker::TYPE, 'configuration' => ['products' => [$product->getCode( )]], ]], [['type' => PercentageDiscountPriceCalculator::TYPE, 'configuration' => ['amount' => $discount], ]], )
/src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php:4661return array_merge(parent::getDefinedElements( ), ['association_dropdown' => '.field > label:contains("%association%") ~ .product-select', 'association_dropdown_item' => '.field > label:contains("%association%") ~ .product-select > div.menu > div.item:contains("%item%")', 'association_dropdown_item_selected' => '.field > label:contains("%association%") ~ .product-select > a.label:contains("%item%")', 'attribute' => '#attributesContainer [data-test-product-attribute-value-in-locale="%attributeName% %localeCode%"] input', 'attribute_select' => '#attributesContainer [data-test-product-attribute-value-in-locale="%attributeName% %localeCode%"] select', 'attribute_element' => '.attribute', 'attribute_delete_button' => '#attributesContainer .attributes-group .attributes-header:contains("%attributeName%") button', 'code' => '#sylius_product_code', 'images' => '#sylius_product_images', 'language_tab' => '[data-locale="%locale%"] .title', 'locale_tab' => '#attributesContainer [data-test-product-attribute-value-in-locale="%attributeName% %localeCode%"]', 'name' => '#sylius_product_translations_%locale%_name', 'prices' => '#sylius_product_variant_channelPricings', 'original_price' => '#sylius_product_variant_channelPricings input[name$="[originalPrice]"][id*="%channelCode%"]', 'price' => '#sylius_product_variant_channelPricings input[id*="%channelCode%"]', 'pricing_configuration' => '#sylius_calculator_container', 'main_taxon' => '#sylius_product_mainTaxon', 'meta_description' => '#sylius_product_translations_%locale%_metaDescription', 'meta_keywords' => '#sylius_product_translations_%locale%_metaKeywords', 'non_translatable_attribute' => '#attributesContainer [data-test-product-attribute-value-in-locale="%attributeName% "] input', 'product_taxon' => '#sylius-product-taxonomy-tree .item .header:contains("%taxonName%") input', 'product_taxons' => '#sylius_product_productTaxons', 'shipping_required' => '#sylius_product_variant_shippingRequired', 'show_product_dropdown' => '.scrolling.menu', 'show_product_single_button' => '[data-test-show-product-in-shop-page]', 'slug' => '#sylius_product_translations_%locale%_slug', 'tab' => '.menu [data-tab="%name%"]', 'taxonomy' => 'a[data-tab="taxonomy"]', 'tracked' => '#sylius_product_variant_tracked', 'toggle_slug_modification_button' => '[data-locale="%locale%"] .toggle-product-slug-modification', 'enabled' => '#sylius_product_enabled', ])
/src/Sylius/Behat/Page/Admin/Product/CreateSimpleProductPage.php:2641return array_merge(parent::getDefinedElements( ), ['association_dropdown' => '.field > label:contains("%association%") ~ .product-select', 'association_dropdown_item' => '.field > label:contains("%association%") ~ .product-select > div.menu > div.item:contains("%item%")', 'association_dropdown_item_selected' => '.field > label:contains("%association%") ~ .product-select > a.label:contains("%item%")', 'attribute' => '.attribute', 'attribute_delete_button' => '#attributesContainer .attributes-group .attributes-header:contains("%attributeName%") button', 'attribute_value' => '#attributesContainer [data-test-product-attribute-value-in-locale="%attributeName% %localeCode%"] input', 'attribute_value_select' => '#attributesContainer [data-test-product-attribute-value-in-locale="%attributeName% %localeCode%"] select', 'attributes_choice' => '#sylius_product_attribute_choice', 'cancel_button' => '[data-test-cancel-changes-button]', 'channel_checkbox' => '.checkbox:contains("%channelName%") input', 'code' => '#sylius_product_code', 'form' => 'form[name="sylius_product"]', 'images' => '#sylius_product_images', 'language_tab' => '[data-locale="%locale%"] .title', 'locale_tab' => '#attributesContainer .menu [data-tab="%localeCode%"]', 'main_taxon' => '#sylius_product_mainTaxon', 'product_taxons' => '#sylius_product_productTaxons', 'name' => '#sylius_product_translations_%locale%_name', 'non_translatable_attribute_value' => '#attributesContainer [data-test-product-attribute-value-in-locale="%attributeName% "] input', 'original_price' => '#sylius_product_variant_channelPricings_%channelCode%_originalPrice', 'price' => '#sylius_product_variant_channelPricings_%channelCode%_price', 'prices_validation_message' => '#sylius_product_variant_channelPricings ~ .sylius-validation-error, #sylius_product_variant_channelPricings .sylius-validation-error', 'price_calculator' => '#sylius_product_variant_pricingCalculator', 'shipping_category' => '#sylius_product_variant_shippingCategory', 'shipping_required' => '#sylius_product_variant_shippingRequired', 'slug' => '#sylius_product_translations_%locale%_slug', 'tab' => '.menu [data-tab="%name%"]', 'taxonomy' => 'a[data-tab="taxonomy"]', 'toggle_slug_modification_button' => '.toggle-product-slug-modification', ])
/src/Sylius/Behat/Page/Admin/Product/IndexPage.php:891return array_merge(parent::getDefinedElements( ), ['channel_filter' => '#criteria_channel', 'enabled_filter' => '#criteria_enabled', 'first_product' => '.table > tbody > tr:first-child', 'last_product' => '.table > tbody > tr:last-child', 'page_number' => '.sylius-grid-nav__pagination .active', 'pagination_button' => '.sylius-grid-nav__pagination a.item:contains("%page%")', 'pagination_buttons' => '.sylius-grid-nav__pagination', 'taxon_filter' => '.sylius-tree__item a:contains("%taxon%")', ])
/src/Sylius/Behat/Page/Admin/Product/CreateConfigurableProductPage.php:851return array_merge(parent::getDefinedElements( ), ['code' => '#sylius_product_code', 'images' => '#sylius_product_images', 'main_taxon' => '#sylius_product_mainTaxon', 'name' => '#sylius_product_translations_en_US_name', 'options_choice' => '#sylius_product_options', 'search' => '.ui.fluid.search.selection.dropdown', 'search_item_selected' => 'div.menu > div.item.selected', 'slug' => '#sylius_product_translations_en_US_slug', 'tab' => '.menu [data-tab="%name%"]', 'taxonomy' => 'a[data-tab="taxonomy"]', ])
/src/Sylius/Behat/Page/Admin/ProductVariant/CreatePage.php:1101return array_merge(parent::getDefinedElements( ), ['code' => '#sylius_product_variant_code', 'depth' => '#sylius_product_variant_depth', 'form' => 'form[name="sylius_product_variant"]', 'height' => '#sylius_product_variant_height', 'minimum_price' => '#sylius_product_variant_channelPricings_%channelCode%_minimumPrice', 'on_hand' => '#sylius_product_variant_onHand', 'option_select' => '#sylius_product_variant_optionValues_%option-name%', 'price_calculator' => '#sylius_product_variant_pricingCalculator', 'shipping_category' => '#sylius_product_variant_shippingCategory', 'shipping_required' => '#sylius_product_variant_shippingRequired', 'original_price' => '#sylius_product_variant_channelPricings_%channelCode%_originalPrice', 'price' => '#sylius_product_variant_channelPricings_%channelCode%_price', 'prices_validation_message' => '#sylius_product_variant_channelPricings ~ .sylius-validation-error, #sylius_product_variant_channelPricings .sylius-validation-error', 'weight' => '#sylius_product_variant_weight', 'width' => '#sylius_product_variant_width', ])
/src/Sylius/Behat/Page/Admin/Product/UpdateConfigurableProductPage.php:2011return array_merge(parent::getDefinedElements( ), ['channel_checkbox' => '.checkbox:contains("%channel%") input', 'channels' => '#sylius_product_channels', 'code' => '#sylius_product_code', 'images' => '#sylius_product_images', 'main_taxon' => '#sylius_product_mainTaxon', 'name' => '#sylius_product_translations_en_US_name', 'options' => '#sylius_product_options', 'price' => '#sylius_product_variant_price', 'search' => '.ui.fluid.search.selection.dropdown', 'search_item_selected' => 'div.menu > div.item.selected', 'tab' => '.menu [data-tab="%name%"]', 'taxonomy' => 'a[data-tab="taxonomy"]', ])
/src/Sylius/Behat/Page/Admin/ShippingMethod/CreatePage.php:1241return array_merge(parent::getDefinedElements( ), ['amount' => '#sylius_shipping_method_configuration_%channelCode%_amount', 'channel' => '#sylius_shipping_method_channels .ui.checkbox:contains("%channel%")', 'calculator' => '#sylius_shipping_method_calculator', 'calculator_configuration' => '.ui.segment.configuration', 'code' => '#sylius_shipping_method_code', 'name' => '#sylius_shipping_method_translations_en_US_name', 'zone' => '#sylius_shipping_method_zone', 'rules' => '#sylius_shipping_method_rules', ])
/src/Sylius/Behat/Page/Admin/ProductVariant/UpdatePage.php:1321return array_merge(parent::getDefinedElements( ), ['code' => '#sylius_product_variant_code', 'minimum_price' => '#sylius_product_variant_channelPricings_%channelCode%_minimumPrice', 'name' => '#sylius_product_variant_translations_%language%_name', 'on_hand' => '#sylius_product_variant_onHand', 'option_values' => '#sylius_product_variant_optionValues_%optionName%', 'original_price' => '#sylius_product_variant_channelPricings_%channelCode%_originalPrice', 'price' => '#sylius_product_variant_channelPricings_%channelCode%_price', 'pricing_configuration' => '#sylius_calculator_container', 'shipping_required' => '#sylius_product_variant_shippingRequired', 'show_product_dropdown' => '.scrolling.menu', 'show_product_single_button' => 'a:contains("Show product in shop page")', 'tracked' => '#sylius_product_variant_tracked', 'enabled' => '#sylius_product_variant_enabled', ])
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderItemUnitRepository.php:251return $this->createQueryBuilder('o')->innerJoin('o.orderItem', 'orderItem')->innerJoin('orderItem.order', 'ord')->innerJoin('ord.customer', 'customer')->andWhere('o.id = :id')->andWhere('customer = :customer')->setParameter('id', $id)->setParameter('customer', $customer)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductAssociationRepository.php:251$productAssociation = $this->createQueryBuilder('o')->addSelect('associatedProduct')->leftJoin('o.associatedProducts', 'associatedProduct', 'WITH', 'associatedProduct.enabled = true')->innerJoin('associatedProduct.channels', 'channel', 'WITH', 'channel = :channel')->andWhere('o.id = :associationId')->setParameter('associationId', $associationId)->setParameter('channel', $channel)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/AddressRepository.php:361return $this->createQueryBuilder('o')->innerJoin('o.customer', 'customer')->andWhere('o.id = :id')->andWhere('customer = :customer')->setParameter('id', $id)->setParameter('customer', $customer)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductTaxonRepository.php:241return $this->createQueryBuilder('o')->innerJoin('o.product', 'product')->andWhere('product.code = :productCode')->setParameter('productCode', $productCode)->innerJoin('o.taxon', 'taxon')->andWhere('taxon.code = :taxonCode')->setParameter('taxonCode', $taxonCode)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductVariantRepository.php:361return $this->createQueryBuilder('variant')->innerJoin('variant.product', 'product')->innerJoin('product.productTaxons', 'productTaxon')->andWhere('productTaxon.taxon = :taxon')->setParameter('taxon', $taxon)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/PromotionRepository.php:531$promotions = $this->filterByActive($this->createQueryBuilder('o'))->andWhere(':channel MEMBER OF o.channels')->andWhere('o.couponBased = false')->setParameter('channel', $channel)->addOrderBy('o.priority', 'DESC')->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ShippingMethodRepository.php:511return $this->createQueryBuilder('o')->andWhere('o.enabled = :enabled')->andWhere('o.archivedAt IS NULL')->andWhere(':channel MEMBER OF o.channels')->setParameter('channel', $channel)->setParameter('enabled', true)->addOrderBy('o.position', 'ASC')
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductVariantRepository.php:511return $this->createQueryBuilder('o')->leftJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->leftJoin('o.channelPricings', 'channelPricing')->innerJoin('channelPricing.appliedPromotions', 'appliedPromotion', 'WITH', 'appliedPromotion = :catalogPromotion')->setParameter('catalogPromotion', $catalogPromotion)->setParameter('locale', $locale)
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductRepository.php:351return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->andWhere('translation.name LIKE :name')->setParameter('name', '%' . $phrase . '%')->setParameter('locale', $locale)->setMaxResults($limit)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductRepository.php:231return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->andWhere('translation.name = :name')->setParameter('name', $name)->setParameter('locale', $locale)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:361return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->innerJoin('o.product', 'product')->andWhere('translation.locale = :locale')->andWhere('product.code = :productCode')->setParameter('locale', $locale)->setParameter('productCode', $productCode)
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductRepository.php:501return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->andWhere($expr->orX('translation.name LIKE :phrase', 'o.code LIKE :phrase', ))->setParameter('phrase', '%' . $phrase . '%')->setParameter('locale', $locale)->setMaxResults($limit)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Controller/ProductAttributeController.php:1061return $this->get('form.factory')->createNamed('value', $attributeForm, null, ['label' => $attribute->getTranslation($localeCode)->getName( ), 'configuration' => $attribute->getConfiguration( ), 'locale_code' => $localeCode, ], )->createView( )
/src/Sylius/Bundle/ProductBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle( ), new Sylius\Bundle\LocaleBundle\SyliusLocaleBundle( ), new Sylius\Bundle\ProductBundle\SyliusProductBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), ]
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductAssociationTypeRepository.php:335return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->setParameter('name', $name)->setParameter('locale', $locale)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductAttributeValueRepository.php:571return $queryBuilder->innerJoin('o.subject', 'product')->andWhere('product.code = :code')->andWhere($queryBuilder->expr( )->orX($queryBuilder->expr( )->in('o.localeCode', $acceptableLocaleCodes), $queryBuilder->expr( )->isNull('o.localeCode'), ), )->andWhere($queryBuilder->expr( )->orX('o.localeCode = :locale', $queryBuilder->expr( )->notIn('IDENTITY(o.attribute)', $subQuery->getDQL( )), ), )->setParameter('code', $productCode)->setParameter('locale', $localeCode)
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:1021return $this->createQueryBuilder('o')->addSelect('product')->addSelect('channelPricings')->addSelect('appliedPromotions')->addSelect('productTaxon')->addSelect('taxon')->leftJoin('o.channelPricings', 'channelPricings')->leftJoin('channelPricings.appliedPromotions', 'appliedPromotions')->leftJoin('o.product', 'product')->leftJoin('product.productTaxons', 'productTaxon')->leftJoin('productTaxon.taxon', 'taxon')->andWhere('o.code IN (:codes)')->setParameter('codes', $codes)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:1221return $this->createQueryBuilder('o')->andWhere('o.product = :productId')->andWhere('o.id = :id')->setParameter('productId', $productId)->setParameter('id', $id)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:1361return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->innerJoin('o.product', 'product')->andWhere('product.code = :productCode')->andWhere($expr->orX('translation.name LIKE :phrase', 'o.code LIKE :phrase', ))->setParameter('phrase', '%' . $phrase . '%')->setParameter('locale', $locale)->setParameter('productCode', $productCode)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:1561return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->andWhere($expr->orX('translation.name LIKE :phrase', 'o.code LIKE :phrase', ))->setParameter('phrase', '%' . $phrase . '%')->setParameter('locale', $locale)->orderBy('o.product', 'ASC')->addOrderBy('o.position', 'ASC')->setMaxResults($limit)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:485return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->setParameter('name', $name)->setParameter('locale', $locale)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:611return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->andWhere('o.product = :product')->setParameter('name', $name)->setParameter('locale', $locale)->setParameter('product', $product)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:761return $this->createQueryBuilder('o')->innerJoin('o.product', 'product')->andWhere('product.code = :productCode')->andWhere('o.code = :code')->setParameter('productCode', $productCode)->setParameter('code', $code)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductVariantRepository.php:891return $this->createQueryBuilder('o')->innerJoin('o.product', 'product')->andWhere('product.code = :productCode')->andWhere('o.code IN (:codes)')->setParameter('productCode', $productCode)->setParameter('codes', $codes)->getQuery( )->getResult( )
/src/Sylius/Bundle/ApiBundle/Swagger/ShopAuthenticationTokenDocumentationNormalizer.php:651$tokenDocumentation = ['paths' => [$this->apiRoute . '/shop/authentication-token' => ['post' => ['tags' => ['ShopUserToken'], 'operationId' => 'postCredentialsItem', 'summary' => 'Get JWT token to login.', 'requestBody' => ['description' => 'Create new JWT Token', 'content' => ['application/json' => ['schema' => ['$ref' => '#/components/schemas/ShopUserCredentials', ], ], ], ], 'responses' => [Response::HTTP_OK => ['description' => 'Get JWT token', 'content' => ['application/json' => ['schema' => ['$ref' => '#/components/schemas/ShopUserToken', ], ], ], ], ], ], ], ], ]
/src/Sylius/Bundle/ApiBundle/Swagger/AdminAuthenticationTokenDocumentationNormalizer.php:611$tokenDocumentation = ['paths' => [$this->apiRoute . '/admin/authentication-token' => ['post' => ['tags' => ['AdminUserToken'], 'operationId' => 'postCredentialsItem', 'summary' => 'Get JWT token to login.', 'requestBody' => ['description' => 'Create new JWT Token', 'content' => ['application/json' => ['schema' => ['$ref' => '#/components/schemas/AdminUserCredentials', ], ], ], ], 'responses' => [Response::HTTP_OK => ['description' => 'Get JWT token', 'content' => ['application/json' => ['schema' => ['$ref' => '#/components/schemas/AdminUserToken', ], ], ], ], ], ], ], ], ]
/src/Sylius/Bundle/ApiBundle/Filter/Doctrine/TranslationOrderNameAndLocaleFilter.php:661return ['order[translation.name]' => ['type' => 'string', 'required' => false, 'property' => 'translation', 'schema' => ['type' => 'string', 'enum' => [strtolower(OrderFilterInterface::DIRECTION_ASC), strtolower(OrderFilterInterface::DIRECTION_DESC), ], ], ], 'localeCode for order[translation.name]' => ['type' => 'string', 'required' => false, 'property' => 'localeCode', ], ]
/src/Sylius/Bundle/ApiBundle/Filter/Doctrine/ProductPriceOrderFilter.php:771return ['order[price]' => ['type' => 'string', 'required' => false, 'property' => 'price', 'schema' => ['type' => 'string', 'enum' => [strtolower(OrderFilterInterface::DIRECTION_ASC), strtolower(OrderFilterInterface::DIRECTION_DESC), ], ], ], ]
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductOptionRepository.php:345return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->setParameter('name', $name)->setParameter('locale', $locale)->getQuery( )->getResult( )
/src/Sylius/Bundle/ProductBundle/Doctrine/ORM/ProductOptionRepository.php:572$results = $queryBuilder->andWhere($queryBuilder->expr( )->in('o', $subqueryBuilder->getDQL( )))->setParameter('name', '%' . $phrase . '%')->setMaxResults($limit)->getQuery( )->getResult( )
/src/Sylius/Bundle/ApiBundle/ApiPlatform/Bridge/Symfony/Bundle/Action/SwaggerUiAction.php:1081$context = ['title' => $this->title, 'description' => $this->description, 'showWebby' => $this->showWebby, 'swaggerUiEnabled' => $this->swaggerUiEnabled, 'reDocEnabled' => $this->reDocEnabled, 'graphqlEnabled' => $this->graphqlEnabled, 'graphiQlEnabled' => $this->graphiQlEnabled, 'graphQlPlaygroundEnabled' => $this->graphQlPlaygroundEnabled, ]
/src/Sylius/Bundle/ApiBundle/ApiPlatform/Bridge/Symfony/Bundle/Action/SwaggerUiAction.php:1291$swaggerData['oauth'] = ['enabled' => $this->oauthEnabled, 'clientId' => $this->oauthClientId, 'clientSecret' => $this->oauthClientSecret, 'type' => $this->oauthType, 'flow' => $this->oauthFlow, 'tokenUrl' => $this->oauthTokenUrl, 'authorizationUrl' => $this->oauthAuthorizationUrl, 'scopes' => $this->oauthScopes, ]
/src/Sylius/Bundle/ShippingBundle/Doctrine/ORM/ShippingMethodRepository.php:235return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->setParameter('name', $name)->setParameter('locale', $locale)->getQuery( )->getResult( )
/src/Sylius/Bundle/ShippingBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Calendar\SyliusCalendarBundle( ), new Sylius\Bundle\ShippingBundle\SyliusShippingBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/AttributeBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php:771$attributeMapping = ['fieldName' => 'attribute', 'targetEntity' => $attributeClass, 'joinColumns' => [['name' => 'attribute_id', 'referencedColumnName' => $attributeMetadata->fieldMappings['id']['columnName'] ?? $attributeMetadata->fieldMappings['id']['fieldName'], 'nullable' => false, ]], ]
/src/Sylius/Bundle/AttributeBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php:551$subjectMapping = ['fieldName' => 'subject', 'targetEntity' => $subjectClass, 'inversedBy' => 'attributes', 'joinColumns' => [['name' => $subject . '_id', 'referencedColumnName' => $targetEntityMetadata->fieldMappings['id']['columnName'] ?? $targetEntityMetadata->fieldMappings['id']['fieldName'], 'nullable' => false, 'onDelete' => 'CASCADE', ]], ]
/src/Sylius/Bundle/AttributeBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), ]
/src/Sylius/Bundle/UiBundle/Registry/TemplateBlock.php:761return new self($this->name, $block->eventName, $block->template ?? $this->template, $block->context ?? $this->context, $block->priority ?? $this->priority, $block->enabled ?? $this->enabled, )
/src/Sylius/Bundle/TaxationBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\TaxationBundle\SyliusTaxationBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), new Sylius\Calendar\SyliusCalendarBundle( ), ]
/src/Sylius/Behat/Page/Shop/Checkout/SelectPaymentPage.php:1031return array_merge(parent::getDefinedElements( ), ['address' => '[data-test-step-address]', 'checkout_subtotal' => '[data-test-checkout-subtotal]', 'next_step' => '[data-test-next-step]', 'order_cannot_be_paid_message' => '[data-test-order-cannot-be-paid]', 'payment_method_option' => '[data-test-payment-item]:contains("%payment_method%") [data-test-payment-method-select]', 'payment_method_select' => '[data-test-payment-item]:contains("%payment_method%") [data-test-payment-method-checkbox]', 'shipping_step_label' => '[data-test-step-shipping]', 'warning_no_payment_methods' => '[data-test-order-cannot-be-paid]', ])
/src/Sylius/Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php:841return !\is_countable($result) || 0 === count($result) || (1 === count($result) && $entity === ($result instanceof \Iterator ? $result->current( ) : current($result)))
/src/Sylius/Behat/Page/Shop/Checkout/SelectShippingPage.php:1521return array_merge(parent::getDefinedElements( ), ['address' => '[data-test-step-address]', 'checkout_subtotal' => '[data-test-checkout-subtotal]', 'next_step' => '[data-test-next-step]', 'order_cannot_be_shipped_message' => '[data-test-order-cannot-be-shipped]', 'purchaser_email' => '[data-test-purchaser-name-or-email]', 'shipment' => '[data-test-shipments]', 'shipping_method' => '[data-test-shipping-method-select]', 'shipping_method_fee' => '[data-test-shipping-item]:contains("%shipping_method%") [data-test-shipping-method-fee]', 'shipping_method_select' => '[data-test-shipping-item]:contains("%shipping_method%") [data-test-shipping-method-checkbox]', 'shipping_method_option' => '[data-test-shipping-item]:contains("%shipping_method%") [data-test-shipping-method-select]', 'warning_no_shipping_methods' => '[data-test-order-cannot-be-shipped]', ])
/src/Sylius/Bundle/CoreBundle/Fixture/BookProductFixture.php:741$bookGenres = [$this->faker->uuid => [$this->baseLocaleCode => 'Science Fiction'], $this->faker->uuid => [$this->baseLocaleCode => 'Romance'], $this->faker->uuid => [$this->baseLocaleCode => 'Thriller'], $this->faker->uuid => [$this->baseLocaleCode => 'Sports'], ]
/src/Sylius/Behat/Page/Shop/Checkout/CompletePage.php:2521return array_merge(parent::getDefinedElements( ), ['addressing_step_label' => '[data-test-step-address]', 'base_order_total' => '[data-test-summary-order-total]', 'billing_address' => '[data-test-billing-address]', 'confirm_button' => '[data-test-confirmation-button]', 'currency' => '[data-test-order-currency-code]', 'extra_notes' => '[data-test-extra-notes]', 'items_table' => '[data-test-order-table]', 'locale' => '[data-test-order-locale-name]', 'order_promotions_details' => '[data-test-order-promotions-details]', 'order_total' => '[data-test-order-total]', 'payment_method' => '[data-test-payment-method]', 'payment_step_label' => '[data-test-step-payment]', 'product_old_price' => '[data-test-product-old-price="%name%"]', 'product_row' => '[data-test-product-row="%name%"]', 'product_unit_price' => '[data-test-product-unit-price="%name%"]', 'promotion_discounts' => '[data-test-promotion-discounts]', 'promotion_shipping_discounts' => '[data-test-promotion-shipping-discounts]', 'promotion_total' => '[data-test-promotion-total]', 'promotions_shipping_details' => '[data-test-shipping-promotion-details]', 'shipping_address' => '[data-test-shipping-address]', 'shipping_method' => '[data-test-shipping-method]', 'shipping_step_label' => '[data-test-step-shipping]', 'shipping_total' => '[data-test-shipping-total]', 'tax_total' => '[data-test-tax-total]', 'validation_errors' => '[data-test-validation-error]', ])
/src/Sylius/Bundle/CoreBundle/Fixture/BookProductFixture.php:1001$products[] = ['name' => sprintf('Book "%s" by %s', $productsNames[$i], $authorName), 'code' => $this->faker->uuid, 'main_taxon' => 'books', 'taxons' => ['books'], 'product_attributes' => ['book_author' => $authorName, 'book_isbn' => $this->faker->isbn13( ), 'book_pages' => $this->faker->numberBetween(42, 1024), 'book_genre' => $this->faker->randomElements(array_keys($bookGenres), $this->faker->numberBetween(1, count($bookGenres))), ], 'images' => [['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 'books.jpg'), 'type' => 'main', ], ['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 'books.jpg'), 'type' => 'thumbnail', ], ], ]
/src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php:2861return array_merge(parent::getDefinedElements( ), ['billing_address_book' => '[data-test-billing-address] [data-test-address-book]', 'billing_city' => '[data-test-billing-city]', 'billing_country' => '[data-test-billing-country]', 'billing_country_province' => '[data-test-billing-address] [data-test-province-code]', 'billing_first_name' => '[data-test-billing-first-name]', 'billing_last_name' => '[data-test-billing-last-name]', 'billing_postcode' => '[data-test-billing-postcode]', 'billing_province' => '[data-test-billing-address] [data-test-province-name]', 'billing_street' => '[data-test-billing-street]', 'checkout_subtotal' => '[data-test-checkout-subtotal]', 'customer_email' => '[data-test-login-email]', 'different_billing_address' => '[data-test-different-billing-address]', 'different_billing_address_label' => '[data-test-different-billing-address-label]', 'different_shipping_address' => '[data-test-different-shipping-address]', 'different_shipping_address_label' => '[data-test-different-shipping-address-label]', 'login_button' => '[data-test-login-button]', 'login_password' => '[data-test-password-input]', 'login_validation_error' => '[data-test-login-validation-error]', 'next_step' => '[data-test-next-step]', 'shipping_address' => '[data-test-shipping-address]', 'shipping_address_book' => '[data-test-shipping-address] [data-test-address-book]', 'shipping_city' => '[data-test-shipping-city]', 'shipping_country' => '[data-test-shipping-country]', 'shipping_country_province' => '[data-test-shipping-address] [data-test-province-code]', 'shipping_first_name' => '[data-test-shipping-first-name]', 'shipping_last_name' => '[data-test-shipping-last-name]', 'shipping_postcode' => '[data-test-shipping-postcode]', 'shipping_province' => '[data-test-shipping-address] [data-test-province-name]', 'shipping_street' => '[data-test-shipping-street]', 'form' => 'form[name="sylius_checkout_address"]', ])
/src/Sylius/Bundle/CoreBundle/Fixture/MugProductFixture.php:741$mugMaterials = [$this->faker->uuid => [$this->baseLocaleCode => 'Invisible porcelain'], $this->faker->uuid => [$this->baseLocaleCode => 'Banana skin'], $this->faker->uuid => [$this->baseLocaleCode => 'Porcelain'], $this->faker->uuid => [$this->baseLocaleCode => 'Centipede'], ]
/src/Sylius/Behat/Page/Shop/Cart/SummaryPage.php:2471return array_merge(parent::getDefinedElements( ), ['apply_coupon_button' => '[data-test-apply-coupon-button]', 'base_grand_total' => '[data-test-cart-base-grand-total]', 'cart_items' => '[data-test-cart-items]', 'cart_total' => '[data-test-cart-total]', 'checkout_button' => '[data-test-cart-checkout-button]', 'clear_button' => '[data-test-cart-clear-button]', 'coupon_field' => '[data-test-cart-promotion-coupon-input]', 'delete_button' => '[data-test-cart-remove-button="%name%"]', 'flash_message' => '[data-test-flash-message]', 'grand_total' => '[data-test-cart-grand-total]', 'item_image' => '[data-test-cart-item="%number%"] [data-test-main-image]', 'item_quantity_input' => '[data-test-cart-item-quantity-input="%name%"]', 'items_total' => '[data-test-cart-items-total]', 'no_taxes' => '[data-test-cart-no-tax]', 'product_row' => '[data-test-cart-product-row="%name%"]', 'product_total' => '[data-test-cart-product-row="%name%"] [data-test-cart-product-subtotal]', 'product_unit_price' => '[data-test-cart-product-row="%name%"] [data-test-cart-product-unit-price]', 'product_unit_regular_price' => '[data-test-cart-product-row="%name%"] [data-test-cart-product-regular-unit-price]', 'promotion_coupon_validation_message' => '[data-test-cart-promotion-coupon] [data-test-validation-error]', 'promotion_total' => '[data-test-cart-promotion-total]', 'save_button' => '[data-test-apply-coupon-button]', 'shipping_total' => '[data-test-cart-shipping-total]', 'tax_excluded' => '[data-test-cart-tax-exluded]', 'tax_included' => '[data-test-cart-tax-included]', 'update_button' => '[data-test-cart-update-button]', 'validation_errors' => '[data-test-validation-error]', ])
/src/Sylius/Bundle/CoreBundle/Fixture/MugProductFixture.php:1071$products[] = ['name' => sprintf('Mug "%s"', $productsNames[$i]), 'code' => $this->faker->uuid, 'main_taxon' => 'mugs', 'taxons' => ['mugs'], 'product_attributes' => ['mug_material' => [$this->faker->randomKey($mugMaterials)], ], 'product_options' => ['mug_type'], 'images' => [['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 'mugs.jpg'), 'type' => 'main', ], ['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 'mugs.jpg'), 'type' => 'thumbnail', ], ], ]
/src/Sylius/Behat/Page/Shop/Checkout/CompletePage.php:2831return $this->hasAddressPart($displayedAddress, $address->getCompany( ), true) && $this->hasAddressPart($displayedAddress, $address->getFirstName( )) && $this->hasAddressPart($displayedAddress, $address->getLastName( )) && $this->hasAddressPart($displayedAddress, $address->getPhoneNumber( ), true) && $this->hasAddressPart($displayedAddress, $address->getStreet( )) && $this->hasAddressPart($displayedAddress, $address->getCity( )) && $this->hasAddressPart($displayedAddress, $address->getProvinceCode( ), true) && $this->hasAddressPart($displayedAddress, $this->getCountryName($address->getCountryCode( ))) && $this->hasAddressPart($displayedAddress, $address->getPostcode( ))
/src/Sylius/Bundle/CoreBundle/Fixture/StickerProductFixture.php:931$products[] = ['name' => sprintf('Sticker "%s"', $productsNames[$i]), 'code' => $this->faker->uuid, 'main_taxon' => 'stickers', 'taxons' => ['stickers'], 'variant_selection_method' => ProductInterface::VARIANT_SELECTION_CHOICE, 'product_attributes' => ['sticker_paper' => sprintf('Paper from tree %s', $this->faker->randomElement(['Wung', 'Tanajno', 'Lemon-San', 'Me-Gusta'])), 'sticker_resolution' => $this->faker->randomElement(['JKM XD', '476DPI', 'FULL HD', '200DPI']), ], 'product_options' => ['sticker_size'], 'images' => [['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 'stickers.jpg'), 'type' => 'main', ], ['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 'stickers.jpg'), 'type' => 'thumbnail', ], ], ]
/src/Sylius/Behat/Page/Shop/Account/Order/ShowPage.php:1641return array_merge(parent::getDefinedElements( ), ['billing_address' => '[data-test-billing-address]', 'number' => '[data-test-order-number]', 'order_items' => '[data-test-order-table]', 'order_payment_state' => '[data-test-order-payment-state]', 'order_shipment_state' => '[data-test-order-shipment-state]', 'pay_link' => '[data-test-pay-link]', 'payment_method' => '[data-test-payment-item]:contains("%name%") [data-test-payment-method-select]', 'payment_price' => '[data-test-payment-price]', 'payment_state' => '[data-test-payment-state]', 'product_name' => '[data-test-order-table] [data-test-product-name="%productName%"]', 'product_price' => '[data-test-order-table] td:nth-child(2)', 'shipment_state' => '[data-test-shipment-state]', 'shipping_address' => '[data-test-shipping-address]', 'subtotal' => '[data-test-subtotal]', 'total' => '[data-test-order-total]', ])
/src/Sylius/Bundle/CoreBundle/Fixture/AbstractResourceFixture.php:301$this->optionsResolver = (new OptionsResolver( ))->setDefault('random', 0)->setAllowedTypes('random', 'int')->setDefault('prototype', [ ])->setAllowedTypes('prototype', 'array')->setDefault('custom', [ ])->setAllowedTypes('custom', 'array')->setNormalizer('custom', function (Options $options, array $custom) { /**/ } )
/src/Sylius/Behat/Page/Shop/Account/RegisterPage.php:871return array_merge(parent::getDefinedElements( ), ['create_account_button' => '[data-test-register-button]', 'email' => '[data-test-email]', 'first_name' => '[data-test-first-name]', 'last_name' => '[data-test-last-name]', 'password' => '[data-test-password-first]', 'password_verification' => '[data-test-password-second]', 'phone_number' => '[data-test-phone-number]', 'subscribe_newsletter' => '[data-test-subscribed-to-newsletter]', ])
/src/Sylius/Bundle/CoreBundle/Fixture/TshirtProductFixture.php:1291$products[] = ['name' => sprintf('T-Shirt "%s"', $productsNames[$i]), 'code' => $this->faker->uuid, 'main_taxon' => $categoryTaxonCode, 'taxons' => ['t_shirts', $categoryTaxonCode], 'product_attributes' => ['t_shirt_brand' => $this->faker->randomElement(['Nike', 'Adidas', 'JKM-476 Streetwear', 'Potato', 'Centipede Wear']), 't_shirt_collection' => sprintf('Sylius %s %s', $this->faker->randomElement(['Summer', 'Winter', 'Spring', 'Autumn']), random_int(1995, 2012)), 't_shirt_material' => $this->faker->randomElement(['Centipede', 'Wool', 'Centipede 10% / Wool 90%', 'Potato 100%']), ], 'product_options' => ['t_shirt_color', 't_shirt_size'], 'images' => [['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 't-shirts.jpg'), 'type' => 'main', ], ['path' => sprintf('%s/../Resources/fixtures/%s', __DIR__, 't-shirts.jpg'), 'type' => 'thumbnail', ], ], ]
/src/Sylius/Bundle/TaxonomyBundle/Doctrine/ORM/TaxonRepository.php:701return $this->createQueryBuilder('o')->addSelect('translation')->innerJoin('o.translations', 'translation')->andWhere('o.enabled = :enabled')->andWhere('translation.slug = :slug')->andWhere('translation.locale = :locale')->setParameter('slug', $slug)->setParameter('locale', $locale)->setParameter('enabled', true)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Behat/Page/Shop/Account/AddressBook/CreatePage.php:651return array_merge(parent::getDefinedElements( ), ['add_button' => '[data-test-add-address]', 'city' => '[data-test-city]', 'country' => '[data-test-country]', 'first_name' => '[data-test-first-name]', 'last_name' => '[data-test-last-name]', 'postcode' => '[data-test-postcode]', 'street' => '[data-test-street]', 'province_validation_message' => '[data-test-validation-error]:contains("province")', ])
/src/Sylius/Bundle/TaxonomyBundle/Doctrine/ORM/TaxonRepository.php:861return $this->createQueryBuilder('o')->addSelect('translation')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->setParameter('name', $name)->setParameter('locale', $locale)->getQuery( )->getResult( )
/src/Sylius/Behat/Page/Shop/Account/Order/ShowPage.php:1911return (stripos($elementText, $customerName) !== false) && (stripos($elementText, $street) !== false) && (stripos($elementText, $city . ', ' . $postcode) !== false) && (stripos($elementText, $countryName) !== false)
/src/Sylius/Bundle/TaxonomyBundle/Doctrine/ORM/TaxonRepository.php:1332$results = $queryBuilder->andWhere($queryBuilder->expr( )->in('o', $subqueryBuilder->getDQL( )))->setParameter('name', '%' . $phrase . '%')->setMaxResults($limit)->getQuery( )->getResult( )
/src/Sylius/Behat/Page/Shop/Account/AddressBook/UpdatePage.php:831return array_merge(parent::getDefinedElements( ), ['city' => '[data-test-city]', 'country' => '[data-test-country]', 'first_name' => '[data-test-first-name]', 'last_name' => '[data-test-last-name]', 'postcode' => '[data-test-postcode]', 'province_name' => '[data-test-province-name]', 'province_code' => '[data-test-province-code]', 'save_button' => '[data-test-save-changes]', 'selected_province' => '[data-test-province-code] option[selected="selected"]', 'street' => '[data-test-street]', ])
/src/Sylius/Bundle/PaymentBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\PaymentBundle\SyliusPaymentBundle( ), new Sylius\Bundle\LocaleBundle\SyliusLocaleBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Behat/Page/Shop/Account/AddressBook/IndexPage.php:831return array_merge(parent::getDefinedElements( ), ['address' => '[data-test-address-context="%full_name%"]', 'address_contains' => '[data-test-address-context="%full_name%"]:contains("%value%")', 'addresses' => '[data-test-addresses]', 'content' => '[data-test-flash-message="info"]:contains("%message%")', 'default_address' => '[data-test-default-address] [data-test-full-name]', 'delete_button' => '[data-test-address="%full_name%"] [data-test-delete-button]', 'edit_address' => '[data-test-address="%full_name%"] [data-test-edit-button] [data-test-button]', 'set_as_default_button' => '[data-test-address="%full_name%"] [data-test-set-as-default-button]', ])
/src/Sylius/Bundle/PaymentBundle/Doctrine/ORM/PaymentMethodRepository.php:235return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->setParameter('name', $name)->setParameter('locale', $locale)->getQuery( )->getResult( )
/src/Sylius/Behat/Page/Admin/Order/ShowPage.php:3971return array_merge(parent::getDefinedElements( ), ['billing_address' => '#billing-address', 'currency' => '#sylius-order-currency', 'customer' => '#customer', 'ip_address' => '#ipAddress', 'items_total' => '#items-total', 'order_notes' => '#sylius-order-notes', 'order_payment_state' => '#payment-state > span', 'order_shipping_state' => '#shipping-state > span', 'order_state' => '#sylius-order-state', 'payments' => '#sylius-payments', 'promotion_discounts' => '#promotion-discounts', 'promotion_shipping_discounts' => '#shipping-discount-value', 'promotion_total' => '#promotion-total', 'resend_order_confirmation_email' => '[data-test-resend-order-confirmation-email]', 'resend_shipment_confirmation_email' => '[data-test-resend-shipment-confirmation-email]', 'shipment_shipped_at_date' => '#sylius-shipments .shipped-at-date', 'shipments' => '#sylius-shipments', 'shipping_address' => '#shipping-address', 'shipping_adjustment_name' => '#shipping-adjustment-label', 'shipping_charges' => '#shipping-base-value', 'shipping_tax' => '#shipping-tax-value', 'shipping_total' => '#shipping-total', 'table' => '.table', 'tax_total' => '#tax-total', 'taxes' => '#taxes', 'total' => '#total', ])
/src/Sylius/Behat/Page/Admin/DashboardPage.php:891return array_merge(parent::getDefinedElements( ), ['average_order_value' => '#average-order-value', 'customer_list' => '#customers', 'dropdown' => 'i.dropdown', 'logout' => '#sylius-logout-button', 'new_customers' => '#new-customers', 'new_orders' => '#new-orders', 'order_list' => '#orders', 'total_sales' => '#total-sales', 'sub_header' => '.ui.header .content .sub.header', 'channel_choosing_link' => 'a:contains("%channelName%")', 'admin_menu' => '.sylius-admin-menu', ])
/src/Sylius/Bundle/CoreBundle/Migrations/Version20220203115813.php:641return array_key_exists(self::MAIN_DSN, $_ENV) && str_contains($_ENV[self::MAIN_DSN], 'doctrine') || array_key_exists(self::MAIN_FAILED_DSN, $_ENV) && str_contains($_ENV[self::MAIN_FAILED_DSN], 'doctrine') || array_key_exists(self::CATALOG_PROMOTION_REMOVAL_DSN, $_ENV) && str_contains($_ENV[self::CATALOG_PROMOTION_REMOVAL_DSN], 'doctrine') || array_key_exists(self::CATALOG_PROMOTION_REMOVAL_FAILED_DSN, $_ENV) && str_contains($_ENV[self::CATALOG_PROMOTION_REMOVAL_FAILED_DSN], 'doctrine')
/src/Sylius/Behat/Page/Admin/Order/UpdatePage.php:681return array_merge(parent::getDefinedElements( ), ['billing_city' => '#sylius_order_billingAddress_city', 'billing_country' => '#sylius_order_billingAddress_countryCode', 'billing_first_name' => '#sylius_order_billingAddress_firstName', 'billing_last_name' => '#sylius_order_billingAddress_lastName', 'billing_postcode' => '#sylius_order_billingAddress_postcode', 'billing_street' => '#sylius_order_billingAddress_street', 'shipping_city' => '#sylius_order_shippingAddress_city', 'shipping_country' => '#sylius_order_shippingAddress_countryCode', 'shipping_first_name' => '#sylius_order_shippingAddress_firstName', 'shipping_last_name' => '#sylius_order_shippingAddress_lastName', 'shipping_postcode' => '#sylius_order_shippingAddress_postcode', 'shipping_street' => '#sylius_order_shippingAddress_street', ])
/src/Sylius/Bundle/CoreBundle/Migrations/Version20171003103916.php:991return $entityManager->createQueryBuilder( )->select('o.id, o.configuration')->from($productAttributeClass, 'o')->andWhere('o.type = :type')->setParameter('type', SelectAttributeType::TYPE)->getQuery( )->getArrayResult( )
/src/Sylius/Behat/Page/Admin/Order/ShowPage.php:4341return (stripos($elementText, $customerName) !== false) && (stripos($elementText, $street) !== false) && (stripos($elementText, $city) !== false) && (stripos($elementText, $countryName . ' ' . $postcode) !== false)
/src/Sylius/Bundle/CoreBundle/Form/Extension/AddressTypeExtension.php:431$countryCodeField = $builder->create($oldCountryCodeField->getName( ), $oldCountryCodeField->getType( )->getInnerType( )::class, array_replace($oldCountryCodeField->getOptions( ), ['choices' => $channel->getCountries( )->toArray( )]), )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ShipmentRepository.php:351return $this->createQueryBuilder('o')->andWhere('o.id = :shipmentId')->andWhere('o.order = :orderId')->setParameter('shipmentId', $shipmentId)->setParameter('orderId', $orderId)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/PaymentRepository.php:593return $this->createQueryBuilder('o')->innerJoin('o.order', 'ord')->innerJoin('ord.customer', 'customer')->andWhere('o.id = :id')->andWhere('customer = :customer')->setParameter('id', $id)->setParameter('customer', $customer)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ShipmentRepository.php:623return $this->createQueryBuilder('o')->innerJoin('o.order', 'ord')->innerJoin('ord.customer', 'customer')->andWhere('o.id = :id')->andWhere('customer = :customer')->setParameter('id', $id)->setParameter('customer', $customer)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ShipmentRepository.php:471return $this->createQueryBuilder('o')->innerJoin('o.order', 'orders')->andWhere('o.id = :shipmentId')->andWhere('orders.tokenValue = :tokenValue')->andWhere('orders.channel = :channel')->setParameter('shipmentId', $shipmentId)->setParameter('tokenValue', $tokenValue)->setParameter('channel', $channel)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderItemRepository.php:253return $this->createQueryBuilder('o')->innerJoin('o.order', 'ord')->innerJoin('ord.customer', 'customer')->andWhere('o.id = :id')->andWhere('customer = :customer')->setParameter('id', $id)->setParameter('customer', $customer)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ShipmentRepository.php:761return $this->createQueryBuilder('o')->innerJoin('o.translations', 'translation')->andWhere('translation.name = :name')->andWhere('translation.locale = :locale')->setParameter('name', $name)->setParameter('localeCode', $locale)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php:1351return $this->createQueryBuilder('o')->addSelect('translation')->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->andWhere(':channel MEMBER OF o.channels')->andWhere('o.enabled = :enabled')->addOrderBy('o.createdAt', 'DESC')->setParameter('channel', $channel)->setParameter('locale', $locale)->setParameter('enabled', true)->setMaxResults($count)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/PaymentMethodRepository.php:341return $this->createQueryBuilder('o')->andWhere('o.enabled = :enabled')->andWhere(':channel MEMBER OF o.channels')->setParameter('channel', $channel)->setParameter('enabled', true)->addOrderBy('o.position')->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Tests/Fixture/GeographicalFixtureTest.php:1701return new GeographicalFixture($this->getMockBuilder(FactoryInterface::class)->getMock( ), $this->getMockBuilder(ObjectManager::class)->getMock( ), $this->getMockBuilder(FactoryInterface::class)->getMock( ), $this->getMockBuilder(ObjectManager::class)->getMock( ), $this->getMockBuilder(ZoneFactoryInterface::class)->getMock( ), $this->getMockBuilder(ObjectManager::class)->getMock( ), )
/src/Sylius/Bundle/CoreBundle/Fixture/Factory/ProductExampleFactory.php:3471return $this->faker->randomElements(array_keys($productAttribute->getConfiguration( )['choices']), $this->faker->numberBetween(1, count($productAttribute->getConfiguration( )['choices'])), )
/src/Sylius/Bundle/CoreBundle/Collector/CartCollector.php:931return ['id' => $item->getId( ), 'variantName' => $variant->getName( ), 'variantId' => $variant->getId( ), 'variantCode' => $variant->getCode( ), 'quantity' => $item->getQuantity( ), 'productName' => $product->getName( ), 'productCode' => $product->getCode( ), 'productId' => $product->getId( ), ]
/src/Sylius/Bundle/CoreBundle/Collector/SyliusCollector.php:331$this->data = ['version' => SyliusCoreBundle::VERSION, 'base_currency_code' => null, 'currency_code' => null, 'default_locale_code' => $defaultLocaleCode, 'locale_code' => null, 'extensions' => ['SyliusAdminApiBundle' => ['name' => 'API', 'enabled' => false], 'SyliusAdminBundle' => ['name' => 'Admin', 'enabled' => false], 'SyliusShopBundle' => ['name' => 'Shop', 'enabled' => false], ], ]
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/CustomerRepository.php:321return (int) $this->createQueryBuilder('o')->select('COUNT(o.id)')->where('o.createdAt >= :startDate')->andWhere('o.createdAt <= :endDate')->setParameter('startDate', $startDate)->setParameter('endDate', $endDate)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Collector/CartCollector.php:1051$this->data = ['id' => $cart->getId( ), 'total' => $cart->getTotal( ), 'subtotal' => $cart->getItemsTotal( ), 'currency' => $cart->getCurrencyCode( ), 'locale' => $cart->getLocaleCode( ), 'quantity' => count($cart->getItems( )), 'items' => $itemsData, 'states' => ['main' => $cart->getState( ), 'checkout' => $cart->getCheckoutState( ), 'shipping' => $cart->getShippingState( ), 'payment' => $cart->getPaymentState( ), ], ]
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/PaymentRepository.php:461return $this->createQueryBuilder('p')->innerJoin('p.order', 'o')->andWhere('p.id = :paymentId')->andWhere('o.tokenValue = :orderToken')->setParameter('paymentId', $paymentId)->setParameter('orderToken', $orderToken)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Behat/Page/Shop/Product/ShowPage.php:3571return array_merge(parent::getDefinedElements( ), ['add_to_cart_button' => '[data-test-add-to-cart-button]', 'applied_promotions' => '#appliedPromotions', 'association' => '[data-test-product-association="%associationName%"]', 'attributes' => '[data-test-product-attributes]', 'average_rating' => '[data-test-average-rating]', 'breadcrumb' => '.breadcrumb', 'catalog_promotion' => '.promotion_label', 'current_variant_input' => '[data-test-product-variants] td input:checked', 'details' => '[data-tab="details"]', 'main_image' => '[data-test-main-image]', 'name' => '[data-test-product-name]', 'option_select' => '#sylius_add_to_cart_cartItem_variant_%optionCode%', 'out_of_stock' => '[data-test-product-out-of-stock]', 'product_box' => '[data-test-product-box]', 'product_name' => '[data-test-product-name]', 'product_original_price' => '[data-test-product-price-content] [data-test-product-original-price]', 'product_price' => '[data-test-product-price-content] [data-test-product-price]', 'product_price_content' => '[data-test-product-price-content]', 'quantity' => '[data-test-quantity]', 'reviews' => '[data-test-product-reviews]', 'reviews_comment' => '[data-test-comment="%title%"]', 'selecting_variants' => '[data-test-product-selecting-variant]', 'tab' => '[data-test-tab="%name%"]', 'validation_errors' => '[data-test-cart-validation-error]', 'variant_radio' => '[data-test-product-variants] tbody tr:contains("%variantName%") input', 'variants_rows' => '[data-test-product-variants-row]', ])
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/PaymentRepository.php:341return $this->createQueryBuilder('o')->andWhere('o.id = :paymentId')->andWhere('o.order = :orderId')->setParameter('paymentId', $paymentId)->setParameter('orderId', $orderId)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1151return $this->createQueryBuilder('o')->addSelect('payments')->addSelect('paymentMethods')->leftJoin('o.payments', 'payments')->leftJoin('payments.method', 'paymentMethods')->andWhere('o.id = :id')->setParameter('id', $id)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1371return (int) $this->createQueryBuilder('o')->select('COUNT(o.id)')->andWhere('o.customer = :customer')->andWhere('o.promotionCoupon = :coupon')->andWhere('o.state NOT IN (:states)')->setParameter('customer', $customer)->setParameter('coupon', $coupon)->setParameter('states', $states)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:831return $this->createQueryBuilder('o')->andWhere('o.id = :id')->andWhere('o.state != :state')->setParameter('id', $id)->setParameter('state', OrderInterface::STATE_CART)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1031return $this->createQueryBuilder('o')->andWhere('o.customer = :customerId')->andWhere('o.state = :state')->setParameter('customerId', $customer->getId( ))->setParameter('state', OrderInterface::STATE_FULFILLED)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1771return $this->createQueryBuilder('o')->andWhere('o.id = :id')->andWhere('o.state = :state')->andWhere('o.channel = :channel')->setParameter('id', $id)->setParameter('state', OrderInterface::STATE_CART)->setParameter('channel', $channel)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1911return $this->createQueryBuilder('o')->andWhere('o.state = :state')->andWhere('o.channel = :channel')->andWhere('o.customer = :customer')->setParameter('state', OrderInterface::STATE_CART)->setParameter('channel', $channel)->setParameter('customer', $customer)->addOrderBy('o.createdAt', 'DESC')->setMaxResults(1)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1521return (int) $this->createQueryBuilder('o')->select('COUNT(o.id)')->andWhere('o.customer = :customer')->andWhere('o.state NOT IN (:states)')->setParameter('customer', $customer)->setParameter('states', [OrderInterface::STATE_CART, OrderInterface::STATE_CANCELLED])->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1651return $this->createQueryBuilder('o')->andWhere('o.customer = :customer')->andWhere('o.number = :number')->setParameter('customer', $customer)->setParameter('number', $number)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php:2171return $this->createQueryBuilder('product')->distinct( )->addSelect('productTaxon')->innerJoin('product.productTaxons', 'productTaxon')->andWhere('productTaxon.taxon = :taxon')->setParameter('taxon', $taxon)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductReviewRepository.php:261return $this->createQueryBuilder('o')->andWhere('o.reviewSubject = :productId')->andWhere('o.status = :status')->setParameter('productId', $productId)->setParameter('status', ReviewInterface::STATUS_ACCEPTED)->addOrderBy('o.createdAt', 'DESC')->setMaxResults($count)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php:1521$product = $this->createQueryBuilder('o')->addSelect('translation')->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale')->andWhere('translation.slug = :slug')->andWhere(':channel MEMBER OF o.channels')->andWhere('o.enabled = :enabled')->setParameter('channel', $channel)->setParameter('locale', $locale)->setParameter('slug', $slug)->setParameter('enabled', true)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php:1811$product = $this->createQueryBuilder('o')->where('o.code = :code')->andWhere(':channel MEMBER OF o.channels')->andWhere('o.enabled = :enabled')->setParameter('channel', $channel)->setParameter('code', $code)->setParameter('enabled', true)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductReviewRepository.php:701return $this->createQueryBuilder('o')->innerJoin('o.reviewSubject', 'product')->andWhere('product.code = :productCode')->andWhere('o.id = :id')->setParameter('productCode', $productCode)->setParameter('id', $id)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:711return $this->createQueryBuilder('o')->andWhere('o.customer = :customerId')->andWhere('o.channel = :channelId')->andWhere('o.state != :state')->setParameter('customerId', $customerId)->setParameter('channelId', $channelId)->setParameter('state', OrderInterface::STATE_CART)
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductReviewRepository.php:401return $this->createQueryBuilder('o')->innerJoin('o.reviewSubject', 'product')->innerJoin('product.translations', 'translation')->andWhere('translation.locale = :locale')->andWhere('translation.slug = :slug')->andWhere(':channel MEMBER OF product.channels')->andWhere('o.status = :status')->setParameter('locale', $locale)->setParameter('slug', $slug)->setParameter('channel', $channel)->setParameter('status', ReviewInterface::STATUS_ACCEPTED)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductReviewRepository.php:581return $this->createQueryBuilder('o')->innerJoin('o.reviewSubject', 'product')->innerJoin('product.translations', 'translation')->andWhere('translation.locale = :locale')->andWhere('product.code = :productCode')->setParameter('locale', $locale)->setParameter('productCode', $productCode)
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:4044$order = $this->createQueryBuilder('o')->andWhere('o.id = :id')->andWhere('o.state = :state')->setParameter('id', $id)->setParameter('state', OrderInterface::STATE_CART)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:3824$order = $this->createQueryBuilder('o')->andWhere('o.id = :id')->andWhere('o.state = :state')->setParameter('id', $id)->setParameter('state', OrderInterface::STATE_CART)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:3514$order = $this->createQueryBuilder('o')->andWhere('o.id = :id')->andWhere('o.state = :state')->setParameter('id', $id)->setParameter('state', OrderInterface::STATE_CART)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:3341return $this->createQueryBuilder('o')->where('o.checkoutState = :checkoutState')->andWhere('o.paymentState = :paymentState')->andWhere('o.state = :orderState')->andWhere('o.checkoutCompletedAt < :terminalDate')->setParameter('checkoutState', OrderCheckoutStates::STATE_COMPLETED)->setParameter('paymentState', OrderPaymentStates::STATE_AWAITING_PAYMENT)->setParameter('orderState', OrderInterface::STATE_NEW)->setParameter('terminalDate', $terminalDate)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/PromotionRepository.php:361$promotions = $this->filterByActive($this->createQueryBuilder('o'))->andWhere(':channel MEMBER OF o.channels')->setParameter('channel', $channel)->addOrderBy('o.priority', 'DESC')->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:4591return $this->createQueryBuilder('o')->andWhere('o.state = :state')->andWhere('o.tokenValue = :tokenValue')->andWhere('o.channel = :channel')->setParameter('state', OrderInterface::STATE_CART)->setParameter('tokenValue', $tokenValue)->setParameter('channel', $channel)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:4472return $this->createQueryBuilder('o')->andWhere('o.state = :state')->andWhere('o.tokenValue = :tokenValue')->setParameter('state', OrderInterface::STATE_CART)->setParameter('tokenValue', $tokenValue)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:4264$order = $this->createQueryBuilder('o')->andWhere('o.id = :id')->andWhere('o.state = :state')->setParameter('id', $id)->setParameter('state', OrderInterface::STATE_CART)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:2571return (int) $this->createQueryBuilder('o')->select('SUM(o.total)')->andWhere('o.channel = :channel')->andWhere('o.paymentState = :state')->andWhere('o.checkoutCompletedAt >= :startDate')->andWhere('o.checkoutCompletedAt <= :endDate')->setParameter('channel', $channel)->setParameter('state', OrderPaymentStates::STATE_PAID)->setParameter('startDate', $startDate)->setParameter('endDate', $endDate)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:2411return (int) $this->createQueryBuilder('o')->select('SUM(o.total)')->andWhere('o.channel = :channel')->andWhere('o.paymentState = :state')->setParameter('channel', $channel)->setParameter('state', OrderPaymentStates::STATE_PAID)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:2281return (int) $this->createQueryBuilder('o')->select('SUM(o.total)')->andWhere('o.channel = :channel')->andWhere('o.state = :state')->setParameter('channel', $channel)->setParameter('state', OrderInterface::STATE_FULFILLED)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:2091return $this->createQueryBuilder('o')->andWhere('o.state = :state')->andWhere('o.channel = :channel')->andWhere('o.customer = :customer')->andWhere('o.items IS NOT EMPTY')->andWhere('o.createdByGuest = :createdByGuest')->setParameter('state', OrderInterface::STATE_CART)->setParameter('channel', $channel)->setParameter('customer', $customer)->setParameter('createdByGuest', false)->addOrderBy('o.createdAt', 'DESC')->setMaxResults(1)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:3201return $this->createQueryBuilder('o')->andWhere('o.channel = :channel')->andWhere('o.state != :state')->addOrderBy('o.checkoutCompletedAt', 'DESC')->setParameter('channel', $channel)->setParameter('state', OrderInterface::STATE_CART)->setMaxResults($count)->getQuery( )->getResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:3031return (int) $this->createQueryBuilder('o')->select('COUNT(o.id)')->andWhere('o.channel = :channel')->andWhere('o.paymentState = :state')->andWhere('o.checkoutCompletedAt >= :startDate')->andWhere('o.checkoutCompletedAt <= :endDate')->setParameter('channel', $channel)->setParameter('state', OrderPaymentStates::STATE_PAID)->setParameter('startDate', $startDate)->setParameter('endDate', $endDate)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:2871return (int) $this->createQueryBuilder('o')->select('COUNT(o.id)')->andWhere('o.channel = :channel')->andWhere('o.paymentState = :state')->setParameter('channel', $channel)->setParameter('state', OrderPaymentStates::STATE_PAID)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:2741return (int) $this->createQueryBuilder('o')->select('COUNT(o.id)')->andWhere('o.channel = :channel')->andWhere('o.state = :state')->setParameter('channel', $channel)->setParameter('state', OrderInterface::STATE_FULFILLED)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Behat/Context/Transform/AddressContext.php:881return $this->exampleAddressFactory->create(['country_code' => $this->countryNameConverter->convertToCode($countryName), 'first_name' => $firstName, 'last_name' => $lastName, 'company' => null, 'customer' => null, 'phone_number' => null, 'city' => $city, 'street' => $street, 'postcode' => $postcode, 'province_name' => $provinceName, ])
/src/Sylius/Behat/Context/Transform/AddressContext.php:1122return $this->exampleAddressFactory->create(['country_code' => $this->countryNameConverter->convertToCode($countryName), 'first_name' => $firstName, 'last_name' => $lastName, 'company' => null, 'customer' => null, 'phone_number' => null, 'city' => $city, 'street' => $street, 'postcode' => $postcode, ])
/src/Sylius/Behat/Element/Shop/Account/RegisterElement.php:841return array_merge(parent::getDefinedElements( ), ['email' => '[data-test-email]', 'first_name' => '[data-test-first-name]', 'last_name' => '[data-test-last-name]', 'newsletter' => '[data-test-subscribed-to-newsletter]', 'password' => '[data-test-password-first]', 'password_verification' => '[data-test-password-second]', 'phone_number' => '[data-test-phone-number]', 'register_button' => '[data-test-register-button]', ])
/src/Sylius/Behat/Element/Admin/CatalogPromotion/FilterElement.php:701return array_merge(parent::getDefinedElements( ), ['channel' => '#criteria_channel', 'enabled' => '#criteria_enabled', 'end_date_from' => '#criteria_endDate_from_date', 'end_date_to' => '#criteria_endDate_to_date', 'filter' => 'button[type="submit"]:contains("Filter")', 'search' => '#criteria_search_value', 'start_date_from' => '#criteria_startDate_from_date', 'start_date_to' => '#criteria_startDate_to_date', 'state' => '#criteria_state', ])
/src/Sylius/Behat/Context/Api/Shop/CheckoutContext.php:4081$request = $this->requestFactory->customItemAction('shop', Resources::ORDERS, $this->sharedStorage->get('cart_token'), HTTPRequest::METHOD_PATCH, sprintf('payments/%s', $this->getCart( )['payments'][0]['id']), )
/src/Sylius/Behat/Context/Api/Shop/CheckoutContext.php:4781$request = $this->requestFactory->customItemAction('shop', Resources::ORDERS, $this->sharedStorage->get('cart_token'), HTTPRequest::METHOD_PATCH, \sprintf('payments/%s', $this->getCart( )['payments'][0]['id']), )
/src/Sylius/Behat/Context/Api/Shop/CheckoutContext.php:15192$request = $this->requestFactory->customItemAction('shop', Resources::ORDERS, $this->sharedStorage->get('cart_token'), HTTPRequest::METHOD_PATCH, sprintf('shipments/%s', $this->getCart( )['shipments'][0]['id']), )
/src/Sylius/Behat/Context/Transform/AddressContext.php:552return $this->exampleAddressFactory->create(['country_code' => $this->countryNameConverter->convertToCode($countryName), 'first_name' => $firstName, 'last_name' => $lastName, 'company' => null, 'customer' => null, 'phone_number' => null, 'city' => $city, 'street' => $street, 'postcode' => $postcode, ])
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:7951$catalogPromotion = $this->catalogPromotionExampleFactory->create(['name' => $name, 'code' => $code, 'start_date' => $startDate, 'end_date' => $endDate, 'enabled' => $enabled, 'channels' => $channels, 'actions' => $actions, 'scopes' => $scopes, 'description' => $name . ' description', 'priority' => $priority, 'exclusive' => $exclusive, ])
/src/Sylius/Behat/Context/Setup/TaxonomyContext.php:751$translationMap = ['en_US' => $childTaxonName, 'fr_FR' => $childTaxonName . '_FR', 'de_DE' => $childTaxonName . '_DE', 'es_ES' => $childTaxonName . '_ES', 'pl_PL' => $childTaxonName . '_PL', 'pt_PT' => $childTaxonName . '_PT', 'uk_UA' => $childTaxonName . '_UA', 'cn_CN' => $childTaxonName . '_CN', 'ja_JP' => $childTaxonName . '_JP', 'bg_BG' => $childTaxonName . '_BG', 'da_DK' => $childTaxonName . '_DK', ]
/src/Sylius/Behat/Context/Api/Shop/OrderContext.php:591$request = $this->requestFactory->custom(sprintf('%s/shop/account/orders/%s/payments/%s', $this->apiUrlPrefix, $order->getTokenValue( ), (string) $order->getPayments( )->first( )->getId( ), ), HttpRequest::METHOD_PATCH, [ ], $this->shopClient->getToken( ), )
/src/Sylius/Behat/Context/Api/Shop/CheckoutContext.php:3912$request = $this->requestFactory->customItemAction('shop', Resources::ORDERS, $this->sharedStorage->get('cart_token'), HTTPRequest::METHOD_PATCH, sprintf('shipments/%s', $this->getCart( )['shipments'][0]['id']), )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:5601$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForVariantsScopeVariantChecker::TYPE, 'configuration' => ['variants' => [$variant->getCode( )]], ]], [['type' => PercentageDiscountPriceCalculator::TYPE, 'configuration' => ['amount' => $discount], ]], $priority, )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:5891$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForVariantsScopeVariantChecker::TYPE, 'configuration' => ['variants' => [$variant->getCode( )]], ]], [['type' => PercentageDiscountPriceCalculator::TYPE, 'configuration' => ['amount' => $discount], ]], $priority, true, )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:6201$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForProductScopeVariantChecker::TYPE, 'configuration' => ['products' => [$product->getCode( )]], ]], [['type' => FixedDiscountPriceCalculator::TYPE, 'configuration' => [$channel->getCode( ) => ['amount' => $discount / 100]], ]], $priority, )
/src/Sylius/Behat/Context/Setup/CatalogPromotionContext.php:6501$catalogPromotion = $this->createCatalogPromotion($name, null, [ ], [['type' => InForTaxonsScopeVariantChecker::TYPE, 'configuration' => ['taxons' => [$taxon->getCode( )]], ]], [['type' => FixedDiscountPriceCalculator::TYPE, 'configuration' => [$channel->getCode( ) => ['amount' => $discount / 100]], ]], $priority, )
/src/Sylius/Bundle/ReviewBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php:631return ['fieldName' => 'reviewSubject', 'targetEntity' => $reviewableEntity, 'inversedBy' => 'reviews', 'joinColumns' => [['name' => $subject . '_id', 'referencedColumnName' => $reviewableEntityMetadata->fieldMappings['id']['columnName'] ?? $reviewableEntityMetadata->fieldMappings['id']['fieldName'], 'nullable' => false, 'onDelete' => 'CASCADE', ]], ]
/src/Sylius/Bundle/ReviewBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new Symfony\Bundle\SecurityBundle\SecurityBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\UserBundle\SyliusUserBundle( ), new Sylius\Bundle\MailerBundle\SyliusMailerBundle( ), new Sylius\Bundle\ReviewBundle\SyliusReviewBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/LocaleBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\LocaleBundle\SyliusLocaleBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/ReviewBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php:781return ['fieldName' => 'author', 'targetEntity' => $reviewerEntity, 'joinColumns' => [['name' => 'author_id', 'referencedColumnName' => $reviewerEntityMetadata->fieldMappings['id']['columnName'] ?? $reviewerEntityMetadata->fieldMappings['id']['fieldName'], 'nullable' => false, 'onDelete' => 'CASCADE', ]], 'cascade' => ['persist'], ]
/src/Sylius/Behat/Context/Api/Shop/AddressContext.php:4421if($address['firstName'] === $addressToCompare->getFirstName( ) && $address['lastName'] === $addressToCompare->getLastName( ) && $address['countryCode'] === $addressToCompare->getCountryCode( ) && $address['street'] === $addressToCompare->getStreet( ) && $address['city'] === $addressToCompare->getCity( ) && $address['postcode'] === $addressToCompare->getPostcode( ) && $address['provinceName'] === $addressToCompare->getProvinceName( ) && $address['provinceCode'] === $addressToCompare->getProvinceCode( )) { /**/ }
/src/Sylius/Behat/Element/Product/ShowPage/VariantsElement.php:741if($variant->find('css', '.content .variant-name')->getText( ) === $name && $variant->find('css', '.content .variant-code')->getText( ) === $code && $variantContent->find('css', sprintf('tr.pricing:contains("%s") td:nth-child(2)', $channel))->getText( ) === $price && $variant->find('css', '.current-stock')->getText( ) === $currentStock) { /**/ }
/src/Sylius/Bundle/AdminBundle/EventListener/AdminFilterSubscriber.php:481if(null === $requestAttributes->get('_controller') || !$this->isIndexResourceRoute($requestAttributes->get('_route', '')) || !$this->isAdminSection($requestAttributes->get('_sylius', [ ]))) { /**/ }
/src/Sylius/Behat/Context/Api/Shop/CheckoutContext.php:14761if($address['firstName'] === $addressToCompare->getFirstName( ) && $address['lastName'] === $addressToCompare->getLastName( ) && $address['countryCode'] === $addressToCompare->getCountryCode( ) && $address['street'] === $addressToCompare->getStreet( ) && $address['city'] === $addressToCompare->getCity( ) && $address['postcode'] === $addressToCompare->getPostcode( ) && ($addressToCompare->getProvinceName( ) !== null && isset($address['provinceName'])) ? $address['provinceName'] === $addressToCompare->getProvinceName( ) : true) { /**/ }
/src/Sylius/Behat/Context/Api/Admin/ManagingExchangeRatesContext.php:3711if($item['sourceCurrency'] === sprintf('%s/admin/currencies/%s', $this->apiUrlPrefix, $sourceCurrency->getCode( )) && $item['targetCurrency'] === sprintf('%s/admin/currencies/%s', $this->apiUrlPrefix, $targetCurrency->getCode( ))) { /**/ }
/src/Sylius/Bundle/ShopBundle/Twig/OrderItemOriginalPriceToDisplayExtension.php:311if($item->getOriginalUnitPrice( ) !== null && ($item->getOriginalUnitPrice( ) > $item->getUnitPrice( ) || $item->getOriginalUnitPrice( ) > $item->getDiscountedUnitPrice( ))) { /**/ }
/src/Sylius/Bundle/UserBundle/Tests/Functional/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new Symfony\Bundle\SecurityBundle\SecurityBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\UserBundle\SyliusUserBundle( ), new Sylius\Bundle\MailerBundle\SyliusMailerBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/AdminBundle/Form/Extension/CatalogPromotionScopeTypeExtension.php:431return ['data-configuration' => $this->twig->render('@SyliusAdmin/CatalogPromotion/Scope/' . $type . '.html.twig', ['field' => $builder->create('configuration', $this->scopeConfigurationTypes[$type])->getForm( )->createView( )], ), ]
/src/Sylius/Bundle/AdminBundle/Form/Extension/CatalogPromotionActionTypeExtension.php:431return ['data-configuration' => $this->twig->render('@SyliusAdmin/CatalogPromotion/_action.html.twig', ['field' => $builder->create('configuration', $this->actionConfigurationTypes[$type], ['label' => false, 'csrf_protection' => false], )->getForm( )->createView( )], ), ]
/src/Sylius/Bundle/AdminBundle/Provider/StatisticsDataProvider.php:471return ['sales_summary' => ['intervals' => $salesSummary->getIntervals( ), 'sales' => $salesSummary->getSales( ), ], 'channel' => ['base_currency_code' => $currencyCode, 'channel_code' => $channel->getCode( ), ], 'statistics' => ['total_sales' => $this->moneyFormatter->format($statistics->getTotalSales( ), $currencyCode), 'number_of_new_orders' => $statistics->getNumberOfNewOrders( ), 'number_of_new_customers' => $statistics->getNumberOfNewCustomers( ), 'average_order_value' => $this->moneyFormatter->format($statistics->getAverageOrderValue( ), $currencyCode), ], ]
/src/Sylius/Bundle/AdminBundle/Controller/NotificationController.php:391$content = ['version' => SyliusCoreBundle::VERSION, 'hostname' => $request->getHost( ), 'locale' => $request->getLocale( ), 'user_agent' => $request->headers->get('User-Agent'), 'environment' => $this->environment, ]
/src/Sylius/Bundle/AdminBundle/Controller/DashboardController.php:621return new JsonResponse($this->statisticsDataProvider->getRawData($channel, (new \DateTime((string) $request->query->get('startDate'))), (new \DateTime((string) $request->query->get('endDate'))), (string) $request->query->get('interval'), ), )
/src/Sylius/Bundle/PromotionBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Calendar\SyliusCalendarBundle( ), new Sylius\Bundle\PromotionBundle\SyliusPromotionBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), new AppBundle\AppBundle( ), ]
/src/Sylius/Bundle/PromotionBundle/Doctrine/ORM/PromotionCouponRepository.php:441return (int) $this->createQueryBuilder('o')->select('COUNT(o.id)')->andWhere('LENGTH(o.code) = :codeLength')->andWhere('o.code LIKE :codeTemplate')->setParameter('codeLength', $codeLength)->setParameter('codeTemplate', $codeTemplate)->getQuery( )->getSingleScalarResult( )
/src/Sylius/Bundle/PromotionBundle/Doctrine/ORM/PromotionCouponRepository.php:571return $this->createQueryBuilder('o')->leftJoin('o.promotion', 'promotion')->where('promotion.code = :promotionCode')->andWhere('o.code = :code')->setParameter('promotionCode', $promotionCode)->setParameter('code', $code)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/PromotionBundle/Doctrine/ORM/CatalogPromotionRepository.php:311return $queryBuilder->addSelect('scopes')->addSelect('actions')->leftJoin('o.scopes', 'scopes')->leftJoin('o.actions', 'actions')->orderBy('o.exclusive', 'desc')->addOrderBy('o.priority', 'desc')->getQuery( )->getResult( )
/src/Sylius/Bundle/PromotionBundle/Criteria/DateRange.php:411return ($catalogPromotion->getStartDate( ) === null || $catalogPromotion->getStartDate( ) <= $this->calendar->now( )) && ($catalogPromotion->getEndDate( ) === null || $catalogPromotion->getEndDate( ) > $this->calendar->now( ))
/src/Sylius/Bundle/MoneyBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\MoneyBundle\SyliusMoneyBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/InventoryBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Sylius\Bundle\InventoryBundle\SyliusInventoryBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/TaxonomyBundle/Tests/Functional/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\TaxonomyBundle\SyliusTaxonomyBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/TaxonomyBundle/Doctrine/ORM/TaxonRepository.php:251return $this->createTranslationBasedQueryBuilder($locale)->addSelect('child')->innerJoin('o.parent', 'parent')->leftJoin('o.children', 'child')->andWhere('parent.code = :parentCode')->addOrderBy('o.position')->setParameter('parentCode', $parentCode)->getQuery( )->getResult( )
/src/Sylius/Bundle/TaxonomyBundle/Doctrine/ORM/TaxonRepository.php:541return $this->createTranslationBasedQueryBuilder($locale)->addSelect('child')->innerJoin('o.parent', 'parent')->leftJoin('o.children', 'child')->andWhere('o.enabled = :enabled')->andWhere('parent.code = :parentCode')->addOrderBy('o.position')->setParameter('parentCode', ($menuTaxon !== null) ? $menuTaxon->getCode( ) : 'category')->setParameter('enabled', true)->getQuery( )->getResult( )
/src/Sylius/Bundle/CurrencyBundle/Doctrine/ORM/ExchangeRateRepository.php:301return $this->createQueryBuilder('o')->addSelect('sourceCurrency')->addSelect('targetCurrency')->innerJoin('o.sourceCurrency', 'sourceCurrency')->innerJoin('o.targetCurrency', 'targetCurrency')->andWhere($expr->orX('sourceCurrency.code = :firstCurrency AND targetCurrency.code = :secondCurrency', 'targetCurrency.code = :firstCurrency AND sourceCurrency.code = :secondCurrency', ))->setParameter('firstCurrency', $firstCurrencyCode)->setParameter('secondCurrency', $secondCurrencyCode)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CurrencyBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\CurrencyBundle\SyliusCurrencyBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/OrderBundle/Controller/OrderController.php:1231return $this->render($configuration->getTemplate(ResourceActions::UPDATE . '.html'), ['configuration' => $configuration, $this->metadata->getName( ) => $resource, 'form' => $form->createView( ), 'cart' => $resource, ], )
/src/Sylius/Bundle/OrderBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\MoneyBundle\SyliusMoneyBundle( ), new Sylius\Bundle\OrderBundle\SyliusOrderBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderItemRepository.php:251return $this->createQueryBuilder('o')->innerJoin('o.order', 'cart')->andWhere('cart.state = :state')->andWhere('o.id = :id')->andWhere('cart.id = :cartId')->setParameter('state', OrderInterface::STATE_CART)->setParameter('id', $id)->setParameter('cartId', $cartId)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/OrderBundle/Controller/OrderItemController.php:1031return $this->render($configuration->getTemplate(CartActions::ADD . '.html'), ['configuration' => $configuration, $this->metadata->getName( ) => $orderItem, 'form' => $form->createView( ), ], )
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php:371return $this->createQueryBuilder('o')->addSelect('channel')->addSelect('customer')->innerJoin('o.channel', 'channel')->leftJoin('o.customer', 'customer')->andWhere('o.state = :state')->setParameter('state', OrderInterface::STATE_CART)
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderItemRepository.php:401return $this->createQueryBuilder('o')->innerJoin('o.order', 'cart')->andWhere('cart.state = :state')->andWhere('o.id = :id')->andWhere('cart.tokenValue = :tokenValue')->setParameter('state', OrderInterface::STATE_CART)->setParameter('id', $id)->setParameter('tokenValue', $tokenValue)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php:721return $this->createQueryBuilder('o')->andWhere('o.state != :state')->andWhere('o.number = :number')->setParameter('state', OrderInterface::STATE_CART)->setParameter('number', $number)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php:491return $this->createQueryBuilder('o')->andWhere('o.state != :state')->setParameter('state', OrderInterface::STATE_CART)->addOrderBy('o.checkoutCompletedAt', 'DESC')->setMaxResults($count)->getQuery( )->getResult( )
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php:972return $this->createQueryBuilder('o')->andWhere('o.state = :state')->andWhere('o.tokenValue = :tokenValue')->setParameter('state', OrderInterface::STATE_CART)->setParameter('tokenValue', $tokenValue)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php:841return $this->createQueryBuilder('o')->andWhere('o.state != :state')->andWhere('o.tokenValue = :tokenValue')->setParameter('state', OrderInterface::STATE_CART)->setParameter('tokenValue', $tokenValue)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/CustomerBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\CustomerBundle\SyliusCustomerBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php:1091return $this->createQueryBuilder('o')->andWhere('o.id = :id')->andWhere('o.state = :state')->setParameter('state', OrderInterface::STATE_CART)->setParameter('id', $id)->getQuery( )->getOneOrNullResult( )
/src/Sylius/Bundle/AddressingBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\AddressingBundle\SyliusAddressingBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Bundle/ChannelBundle/test/app/AppKernel.php:211return [new Symfony\Bundle\FrameworkBundle\FrameworkBundle( ), new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle( ), new FOS\RestBundle\FOSRestBundle( ), new JMS\SerializerBundle\JMSSerializerBundle( ), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle( ), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle( ), new Sylius\Bundle\ChannelBundle\SyliusChannelBundle( ), new Sylius\Bundle\ResourceBundle\SyliusResourceBundle( ), new Symfony\Bundle\TwigBundle\TwigBundle( ), ]
/src/Sylius/Component/Core/Test/Tests/Taxation/Applicator/OrderItemUnitsTaxesApplicatorTest.php:381$applicator = new OrderItemUnitsTaxesApplicator(new DefaultCalculator( ), new AdjustmentFactory(new Factory(Adjustment::class)), $this->createConfiguredMock(TaxRateResolverInterface::class, ['resolve' => $this->createTaxRate( ), ]), new ProportionalIntegerDistributor( ), )
/src/Sylius/Component/Core/Test/Tests/Taxation/Applicator/OrderItemUnitsTaxesApplicatorTest.php:571$applicator = new OrderItemUnitsTaxesApplicator(new DecimalCalculator( ), new AdjustmentFactory(new Factory(Adjustment::class)), $this->createConfiguredMock(TaxRateResolverInterface::class, ['resolve' => $this->createTaxRate( ), ]), new ProportionalIntegerDistributor( ), )
/src/Sylius/Behat/Element/Admin/CatalogPromotion/FormElement.php:2121return array_merge(parent::getDefinedElements( ), ['actions' => '#actions', 'add_action_button' => '#actions [data-form-collection="add"]', 'add_scope_button' => '#scopes [data-form-collection="add"]', 'description' => '#sylius_catalog_promotion_translations_%localeCode%_description', 'enabled' => '#sylius_catalog_promotion_enabled', 'exclusive' => '#sylius_catalog_promotion_exclusive', 'end_date' => '#sylius_catalog_promotion_endDate_date', 'label' => '#sylius_catalog_promotion_translations_%localeCode%_label', 'last_action' => '#actions [data-form-collection="item"]:last-child', 'last_scope' => '#scopes [data-form-collection="item"]:last-child', 'name' => '#sylius_catalog_promotion_name', 'priority' => '#sylius_catalog_promotion_priority', 'scopes' => '#scopes', 'start_date' => '#sylius_catalog_promotion_startDate_date', ])
/src/Sylius/Behat/Element/Admin/Channel/ShopBillingDataElement.php:501return $street === $this->getElement('street')->getValue( ) && $postcode === $this->getElement('postcode')->getValue( ) && $city === $this->getElement('city')->getValue( ) && $countryCode === $this->getElement('country_code')->getValue( )
/src/Sylius/Component/Core/Taxation/Applicator/OrderItemUnitsTaxesApplicator.php:972$unitTaxAdjustment = $this->adjustmentFactory->createWithData(AdjustmentInterface::TAX_ADJUSTMENT, $taxRate->getLabel( ), $taxAmount, $taxRate->isIncludedInPrice( ), ['taxRateCode' => $taxRate->getCode( ), 'taxRateName' => $taxRate->getName( ), 'taxRateAmount' => $taxRate->getAmount( ), ], )
/src/Sylius/Component/Core/Dashboard/SalesDataProvider.php:351$queryBuilder = $this->orderRepository->createQueryBuilder('o')->select('SUM(o.total) AS total')->andWhere('o.paymentState = :state')->andWhere('o.channel = :channel')->setParameter('state', OrderPaymentStates::STATE_PAID)->setParameter('channel', $channel)
/src/Sylius/Component/Core/Test/Tests/Taxation/Applicator/OrderItemsTaxesApplicatorTest.php:381$applicator = new OrderItemsTaxesApplicator(new DecimalCalculator( ), new AdjustmentFactory(new Factory(Adjustment::class)), new IntegerDistributor( ), $this->createConfiguredMock(TaxRateResolverInterface::class, ['resolve' => $this->createTaxRate( ), ]), new ProportionalIntegerDistributor( ), )
/src/Sylius/Component/Core/Taxation/Applicator/OrderItemsTaxesApplicator.php:982$unitTaxAdjustment = $this->adjustmentFactory->createWithData(AdjustmentInterface::TAX_ADJUSTMENT, $taxRate->getLabel( ), $taxAmount, $taxRate->isIncludedInPrice( ), ['taxRateCode' => $taxRate->getCode( ), 'taxRateName' => $taxRate->getName( ), 'taxRateAmount' => $taxRate->getAmount( ), ], )
/src/Sylius/Component/Addressing/Comparator/AddressComparator.php:271return array_map(function ($value) { /**/ } , [$address->getCity( ), $address->getCompany( ), $address->getCountryCode( ), $address->getFirstName( ), $address->getLastName( ), $address->getPhoneNumber( ), $address->getPostcode( ), $address->getProvinceCode( ), $address->getProvinceName( ), $address->getStreet( ), ])
/src/Sylius/Bundle/PayumBundle/Provider/PaymentDescriptionProvider.php:311return $this->translator->trans('sylius.payum_action.payment.description', ['%items%' => $order->getItems( )->count( ), '%total%' => round($payment->getAmount( ) / 100, 2), ], )
/src/Sylius/Component/Core/Resolver/ZoneAndChannelBasedShippingMethodsResolver.php:661return $subject instanceof ShipmentInterface && null !== $subject->getOrder( ) && null !== $subject->getOrder( )->getShippingAddress( ) && null !== $subject->getOrder( )->getChannel( )
/src/Sylius/Component/Attribute/spec/Model/AttributeValueSpec.php:791$storageTypeToExampleData = ['boolean' => false, 'text' => 'Lorem ipsum', 'integer' => 42, 'float' => 6.66, 'datetime' => new \DateTime( ), 'date' => new \DateTime( ), 'json' => ['foo' => 'bar'], ]