gabordemooij / redbean

ORM layer that creates models, config and database on the fly
https://www.redbeanphp.com
2.3k stars 279 forks source link

why empty string returns null in bean #897

Closed ishowshao closed 2 years ago

ishowshao commented 2 years ago
$serialBean = R::findOne('serials', 'serial = ?', [$serial]);
$serialBean->machineId; // i get null here, but it's empty string in my db
ishowshao commented 2 years ago

RedBean auto create machine_id column in my db ... why ?

ishowshao commented 2 years ago

Forgive me, my usage is wrong. But I feel so weird