Since a couple days ago, when creating models some fields in forms show (string)"NULL" as its default value instead of an empty string. Is there a way to prevent this? Thank you.
Since a couple days ago, when creating models some fields in forms show (string)"NULL" as its default value instead of an empty string. Is there a way to prevent this? Thank you.
Try with:
$model->unsetAttributes(); // clear any default values
In the controller, right after
$model= new ModelName
that’s it! Thank you!