silverstripe-ideannotator icon indicating copy to clipboard operation
silverstripe-ideannotator copied to clipboard

DBBoolean are actually int under the hood

Open lekoala opened this issue 1 year ago • 1 comments

I would suggest using this as the default

      SilverStripe\ORM\FieldType\DBBoolean: bool|int

Because internally DBBoolean is a tinyint with 0|1 value, but accepting true/false as well

lekoala avatar Apr 26 '24 11:04 lekoala

Yeah, might be a good idea. Just wondering, don't want to break compatibility with older versions. Haven't had a close look or anything, so I might be a bit overly cautious.

Firesphere avatar Apr 27 '24 05:04 Firesphere