diff --git a/src/Marello/Bundle/OrderBundle/Resources/config/validation.yml b/src/Marello/Bundle/OrderBundle/Resources/config/validation.yml index b2ed2ece2..3e00a77ab 100644 --- a/src/Marello/Bundle/OrderBundle/Resources/config/validation.yml +++ b/src/Marello/Bundle/OrderBundle/Resources/config/validation.yml @@ -26,6 +26,8 @@ Marello\Bundle\OrderBundle\Entity\OrderItem: - NotBlank: { groups: [api, Default] } rowTotalExclTax: - NotBlank: { groups: [api, Default] } + quantity: + - GreaterThanOrEqual: 1 constraints: - Marello\Bundle\OrderBundle\Validator\Constraints\AvailableInventory: fields: [quantity, order, product]