Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 877 Bytes

null_values.md

File metadata and controls

23 lines (16 loc) · 877 Bytes

NULL values

NULL values are also supported by ENUM field. You can set nullable parameter of column to true or false depends on if you want or not to allow NULL values:

/** @ORM\Column(name="position", type="BasketballPositionType", nullable=true) */
protected $position;

// or

/** @ORM\Column(name="position", type="BasketballPositionType", nullable=false) */
protected $position;

More features