I have a table with a field that I want to be boolean and I want to make an ActiveRecord model for that table. How would you do it?
What I have done in the past is making the boolean field in the database an enum("true", "false"), but that makes everything weird:
$user->isAdmin = "true";
Is it possible to make the model behave like this?
$user->isAdmin = true;