there is a type column in the database table bit(1). but it does not work, as I expected.
problem
$invitee = new Invitee();
$invitee->name = "name1";
$invitee->email = "example@mail.com";
$invitee->isActive = 0;
$invitee->save();
I need to put a zero 0in a column isActive, but its getting a value 1every time I try to add a record with 0.
and I found the question in here. . but the answers do not describe the cause of the problem. glad if someone can explain the problem.
source
share