Anonymous Anonymous - 1 year ago
478 0

How to set a default value with options={"default":0}

In this example we create a foo property/field with a default value of 0.


Doctrine entity set default value

* @ORM\Column(name="foo", type="smallint", options={"default":0})
private $foo
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download