How do I create a helper to be used on a select array of fields?
I want to create a toBool helper to convert from tinyint, however I'm lost on the type I need to pass to get autocomplete of the possible fields in the select
Solution:Jump to solution
I think checking equality to 0 would make this safer (and swapping true/false order), as tinyint can be negative.
2 Replies
I ended up with this implementation, am I correct?
Solution
I think checking equality to 0 would make this safer (and swapping true/false order), as tinyint can be negative.