NotBlank allowNull

Description

The default option is false. If set to true then null values will be considered valid.

Syntax

namespace App\Entity;

use Symfony\Component\Validator\Constraints as Assert;

class SomeEntity
{
/**
* @Assert\NotBlank(allowNull = true)
*/
protected $someProperty;
}