This topic contains 2 replies, has 2 voices, and was last updated by Andrey Yatsenko 4 years, 6 months ago.
- Topic
I want to override ProductBundle’s validation.yml to allow validation for a 3rd product type, “giftcard”.
12345Oro\Bundle\ProductBundle\Entity\Product:properties:type:- NotBlank: ~- Choice: { callback: getTypes }I have tried these but it still have a violation of product type not being valid:
Trial 1:
123456Oro\Bundle\ProductBundle\Entity\Product:properties:type:- NotBlank: ~- Choice:choices: [simple, configurable, giftcard]Trial 2:
123456Oro\Bundle\ProductBundle\Entity\Product:properties:type:- NotBlank: ~- Choice:groups: [simple, configurable, giftcard]Please advise what am I doing wrong or if there is a way to replace that callback function with my custom array?
We want to avoid overriding the Product Entity with another custom type. Thanks.
The forum ‘OroPlatform’ is closed to new topics and replies.