maker-bundle icon indicating copy to clipboard operation
maker-bundle copied to clipboard

The field should not have a default null value if it is not intended to be null in the database.

Open rcsofttech85 opened this issue 2 years ago • 1 comments

rcsofttech85 avatar Aug 21 '23 13:08 rcsofttech85

$defaultValue = $nullable ? null : self::DEFAULT_VALUE_NONE;

$propertyType = $nullable ? '?'.$typeHint : $typeHint;

should be enough to get it done.

rcsofttech85 avatar Aug 21 '23 13:08 rcsofttech85