OOP PHP – How to define DateTime property for a db table model object when there is a NULL value in database
I am defining a database model property like this. class GuestList extends DatabaseModel { protected static $table = ‘GuestLists’; public $ID; public $EventName; public \DateTime $EventDateTime; } But its throwing a fatal error. because there are already some data in that table and for some row the value in the EventDateTime is NULL. If i… Read More OOP PHP – How to define DateTime property for a db table model object when there is a NULL value in database