I've got entity type of:
/**
* @ORM\Table(name="entity")
*/
class Entity
{
/**
* @var integer
*
* @ORM\Column(type="integer", nullable=true)
*/
private $value1;
/**
* @var integer
*
* @ORM\Column(type="integer", nullable=true)
*/
private $value2;
}
How to check with validation that $value1 is less than $value2?