Level 73
Can you share the code for the whole method?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys,
I have columns in the db (from, to) which are 'date' type, they are nullable and optional, however if they already have values and I tried to update/set the value to null, they are not updating.
I have tried many ways: $obj->from = null; $obj->from = NULL; $obj->from = ' '; $obj->from = '\N'
all did not work.
Is there any other ways that can help?
Thanks
Please or to participate in this conversation.