title: How to validate some custom constraint in symfony 5
body: <p>I have Item entity class, and I must validate it. I have condition that price must be less than 1000. And if price is less than 5, and stock is less 10 it is wrong too. So for first condition I use LessThan Constraint, but what should I do for the second condition?</p>
  <pre><code>class Item {
     /**
       * @ORM\Column(type=&quot;float&quot;)
       * @Assert\LessThan(self::ITEM_MAX_PRICE)
       */
      private float $price;
  
     /**
       * @ORM\Column(type=&quot;integer&quot;)
       */
      private int $stock;
  
  }
  </code></pre>
  <p>How can I validate this both property's with second condition?</p>