Open pawaclawczyk opened 10 years ago
The Size, Min and Max constraints were deprecated and will be removed in Symfony 2.3. You should use the new constraint Range instead.
Size
Min
Max
Range
Before:
/** @Assert\Size(min = 2, max = 16) */ private $numberOfCpus;
After:
/** @Assert\Range(min = 2, max = 16) */ private $numberOfCpus;
/** @Assert\Min(2) */ private $numberOfCpus;
/** @Assert\Range(min = 2) */ private $numberOfCpus;
The
Size
,Min
andMax
constraints were deprecated and will be removed in Symfony 2.3. You should use the new constraintRange
instead.Before:
After:
Before:
After: