there is a bit(1)
type column in database table. but its not working as i expected.
problem is
$invitee = new Invitee();
$invitee->name = "name1";
$invitee->email = "example@mail.com";
$invitee->isActive = 0; // "b'0'", '0', false, are also not working
$invitee->save();
I need to put a zero 0
in the isActive
column but its getting value 1
every time when i try to add a record with a 0
.
and i found a question in here.. but the answers are not describing the cause of the problem. glad if someone can explain the issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…