Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation for Catalog Promotion Rules #13030

Merged

Conversation

AdamKasp
Copy link
Contributor

Q A
Branch? master

@AdamKasp AdamKasp requested a review from a team as a code owner August 30, 2021 13:34
@AdamKasp AdamKasp force-pushed the add-validation-to-catalog-promotion-rules branch 2 times, most recently from 45e26d3 to 7631614 Compare August 31, 2021 12:34
@Zales0123 Zales0123 added the Feature New feature proposals. label Aug 31, 2021
@AdamKasp AdamKasp force-pushed the add-validation-to-catalog-promotion-rules branch from 7631614 to b92dbb5 Compare September 1, 2021 06:26
@AdamKasp AdamKasp force-pushed the add-validation-to-catalog-promotion-rules branch from b92dbb5 to cbf4b85 Compare September 1, 2021 07:21
@AdamKasp AdamKasp changed the title [WIP] Add validation for Catalog Promotion Rules Add validation for Catalog Promotion Rules Sep 1, 2021
@AdamKasp AdamKasp force-pushed the add-validation-to-catalog-promotion-rules branch 3 times, most recently from e868ae2 to a6143c1 Compare September 1, 2021 08:12
@AdamKasp AdamKasp force-pushed the add-validation-to-catalog-promotion-rules branch from a6143c1 to 0977cc5 Compare September 1, 2021 11:54
@AdamKasp AdamKasp force-pushed the add-validation-to-catalog-promotion-rules branch from 0977cc5 to 9222e3a Compare September 1, 2021 12:32
@GSadee GSadee merged commit a4e09af into Sylius:master Sep 2, 2021
@GSadee
Copy link
Member

GSadee commented Sep 2, 2021

Thank you, Adam! 🎉


<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">
<class name="Sylius\Component\Promotion\Model\CatalogPromotion">
<property name="rules">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constraint could be defined on the CatalogPromotionRule entity 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants