Set doctrine entity boolean field to 0 instead of null

Just set the SQL Default to 0 (Edit: You need to update the schema after that change):

/**
 * @ORM\Column(type="boolean", options={"default":"0"})
 */
protected $isActive;

Also you could initialize the property by default:

/**
 * @ORM\Column(type="boolean", options={"default":"0"})
 */
protected $isActive = false;

Nullable shouldn't matter as long as the value is set to either true/false.

If you really set the property to false before saving and it still saves it as null in the DB then something else is going on.


Change your driver from oci to oci8 in your paramters.yml file:

database_driver: oci8

That should do it. Use the Underground PHP and Oracle Manual for installing OCI8.